Skip to content
Snippets Groups Projects
  • Stepan Koltsov's avatar
    07db74b0
    Bytes::extend_from_slice (#120) · 07db74b0
    Stepan Koltsov authored
    `extend_with_slice` is super-convenient operation on `Bytes`.
    
    While `put_u8` would be expensive on `Bytes`, `extend_from_slice`
    is OK, because it is batch, and it checks for kind only once.
    
    Patch also adds `impl Extend for Bytes`.
    
    cc #116
    07db74b0
    History
    Bytes::extend_from_slice (#120)
    Stepan Koltsov authored
    `extend_with_slice` is super-convenient operation on `Bytes`.
    
    While `put_u8` would be expensive on `Bytes`, `extend_from_slice`
    is OK, because it is batch, and it checks for kind only once.
    
    Patch also adds `impl Extend for Bytes`.
    
    cc #116