Struct scroll::Uleb128[][src]

pub struct Uleb128 { /* fields omitted */ }

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 PartialEq<Uleb128> for Uleb128[src]

impl StructuralPartialEq for Uleb128[src]

impl<'a> TryFromCtx<'a, (), [u8]> for Uleb128[src]

type Error = Error

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.