Struct scroll::Uleb128 [−][src]
An unsigned leb128 integer
Implementations
impl Uleb128[src]
pub fn size(&self) -> usize[src]
Return how many bytes this Uleb128 takes up in memory
pub fn read(bytes: &[u8], offset: &mut usize) -> Result<u64>[src]
Read a variable length u64 from bytes at offset
Trait Implementations
impl AsRef<u64> for Uleb128[src]
impl Clone for Uleb128[src]
impl Copy for Uleb128[src]
impl Debug for Uleb128[src]
impl From<Uleb128> for u64[src]
impl PartialEq<Uleb128> for Uleb128[src]
impl StructuralPartialEq for Uleb128[src]
impl<'a> TryFromCtx<'a, (), [u8]> for Uleb128[src]
Auto Trait Implementations
impl RefUnwindSafe for Uleb128
impl Send for Uleb128
impl Sync for Uleb128
impl Unpin for Uleb128
impl UnwindSafe for Uleb128
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
    T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,