Struct scroll::Uleb128 [−][src]
pub struct Uleb128 { /* fields omitted */ }
An unsigned leb128 integer
Methods
impl Uleb128
[src]
impl Uleb128
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
Return how many bytes this Uleb128 takes up in memory
pub fn read(bytes: &[u8], offset: &mut usize) -> Result<u64>
[src]
pub fn read(bytes: &[u8], offset: &mut usize) -> Result<u64>
Read a variable length u64 from bytes
at offset
Trait Implementations
impl Debug for Uleb128
[src]
impl Debug for Uleb128
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Uleb128
[src]
impl PartialEq for Uleb128
fn eq(&self, other: &Uleb128) -> bool
[src]
fn eq(&self, other: &Uleb128) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Uleb128) -> bool
[src]
fn ne(&self, other: &Uleb128) -> bool
This method tests for !=
.
impl Copy for Uleb128
[src]
impl Copy for Uleb128
impl Clone for Uleb128
[src]
impl Clone for Uleb128
fn clone(&self) -> Uleb128
[src]
fn clone(&self) -> Uleb128
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl AsRef<u64> for Uleb128
[src]
impl AsRef<u64> for Uleb128
impl From<Uleb128> for u64
[src]
impl From<Uleb128> for u64
impl<'a> TryFromCtx<'a> for Uleb128
[src]
impl<'a> TryFromCtx<'a> for Uleb128