pub struct ChainByte {
pub bytes: Vec<u8>,
}Expand description
Chainable byte vector
§Example
Create u8 vector with chainable method to modify value
// Compared to standard rust vector operation
let mut byte = ChainByte::new(); // let mut byte: Vec<u8> = vec![];
byte.push(0x81) // byte.push(0x81);
.add(vec![0x1B, 0x00]) // byte.extend(vec![0x1B, 0x00]);
println!("Vector: {:02X?}", byte.bytes); // println!("Vector: {:02X?}", byte);Fields§
§bytes: Vec<u8>Result vector
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChainByte
impl RefUnwindSafe for ChainByte
impl Send for ChainByte
impl Sync for ChainByte
impl Unpin for ChainByte
impl UnwindSafe for ChainByte
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more