pub struct Sleb128<T>(pub T);
Expand description
Used to write values in LEB-128 format (signed).
§Example
use write_into::{Sleb128, write_into};
let mut buffer = Vec::new();
write_into(&mut buffer, Sleb128(-69i32)).unwrap();
assert_eq!(&buffer, &[0xBB, 0x7F]);
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Sleb128<T>where
T: Freeze,
impl<T> RefUnwindSafe for Sleb128<T>where
T: RefUnwindSafe,
impl<T> Send for Sleb128<T>where
T: Send,
impl<T> Sync for Sleb128<T>where
T: Sync,
impl<T> Unpin for Sleb128<T>where
T: Unpin,
impl<T> UnwindSafe for Sleb128<T>where
T: UnwindSafe,
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