[][src]Struct scroll::Sleb128

pub struct Sleb128 { /* fields omitted */ }

An signed leb128 integer

Implementations

impl Sleb128[src]

pub fn size(&self) -> usize[src]

Return how many bytes this Sleb128 takes up in memory

pub fn read(bytes: &[u8], offset: &mut usize) -> Result<i64>[src]

Read a variable length i64 from bytes at offset

Trait Implementations

impl AsRef<i64> for Sleb128[src]

impl Clone for Sleb128[src]

impl Copy for Sleb128[src]

impl Debug for Sleb128[src]

impl From<Sleb128> for i64[src]

impl PartialEq<Sleb128> for Sleb128[src]

impl StructuralPartialEq for Sleb128[src]

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

type Error = Error

Auto Trait Implementations

impl RefUnwindSafe for Sleb128

impl Send for Sleb128

impl Sync for Sleb128

impl Unpin for Sleb128

impl UnwindSafe for Sleb128

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.