Struct scroll::Sleb128 [−][src]
pub struct Sleb128 { /* fields omitted */ }
An signed leb128 integer
Methods
impl Sleb128
[src]
impl Sleb128
pub fn size(&self) -> usize
[src]
pub fn size(&self) -> usize
Return how many bytes this Sleb128 takes up in memory
pub fn read(bytes: &[u8], offset: &mut usize) -> Result<i64>
[src]
pub fn read(bytes: &[u8], offset: &mut usize) -> Result<i64>
Read a variable length i64 from bytes
at offset
Trait Implementations
impl Debug for Sleb128
[src]
impl Debug for Sleb128
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 Sleb128
[src]
impl PartialEq for Sleb128
fn eq(&self, other: &Sleb128) -> bool
[src]
fn eq(&self, other: &Sleb128) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Sleb128) -> bool
[src]
fn ne(&self, other: &Sleb128) -> bool
This method tests for !=
.
impl Copy for Sleb128
[src]
impl Copy for Sleb128
impl Clone for Sleb128
[src]
impl Clone for Sleb128
fn clone(&self) -> Sleb128
[src]
fn clone(&self) -> Sleb128
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<i64> for Sleb128
[src]
impl AsRef<i64> for Sleb128
impl From<Sleb128> for i64
[src]
impl From<Sleb128> for i64
impl<'a> TryFromCtx<'a> for Sleb128
[src]
impl<'a> TryFromCtx<'a> for Sleb128