[][src]Struct scroll::Uleb128

pub struct Uleb128 { /* fields omitted */ }

An unsigned leb128 integer

Methods

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<'a> TryFromCtx<'a, (), [u8]> for Uleb128[src]

type Error = Error

impl AsRef<u64> for Uleb128[src]

impl From<Uleb128> for u64[src]

impl Clone for Uleb128[src]

impl Copy for Uleb128[src]

impl PartialEq<Uleb128> for Uleb128[src]

impl Debug for Uleb128[src]

impl StructuralPartialEq for Uleb128[src]

Auto Trait Implementations

impl Send for Uleb128

impl Sync for Uleb128

impl Unpin for Uleb128

impl UnwindSafe for Uleb128

impl RefUnwindSafe for Uleb128

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]