[−][src]Struct scroll::Uleb128
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
type Size = usize
fn try_from_ctx(
src: &'a [u8],
_ctx: ()
) -> Result<(Self, Self::Size), Self::Error>
[src]
src: &'a [u8],
_ctx: ()
) -> Result<(Self, Self::Size), Self::Error>
impl Copy for Uleb128
[src]
impl PartialEq<Uleb128> for Uleb128
[src]
impl From<Uleb128> for u64
[src]
impl AsRef<u64> for Uleb128
[src]
impl Clone for Uleb128
[src]
fn clone(&self) -> Uleb128
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Uleb128
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,