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