pub struct Cursor { /* private fields */ }Implementations§
Source§impl Cursor
impl Cursor
pub fn new(data: &Bytes) -> Self
pub fn finished(&self) -> bool
pub fn position(&self) -> Bytes
pub fn fixed_int<T: Pod>(&mut self) -> T
pub fn string(&mut self) -> String
pub fn uleb128(&mut self) -> u64
pub fn sleb128(&mut self) -> i64
pub fn skip_form(&mut self, form: u64) -> Result<(), SdbError>
pub fn u8(&mut self) -> u8
pub fn u16(&mut self) -> u16
pub fn u32(&mut self) -> u32
pub fn u64(&mut self) -> u64
pub fn s8(&mut self) -> i8
pub fn s16(&mut self) -> i16
pub fn s32(&mut self) -> i32
pub fn s64(&mut self) -> i64
Trait Implementations§
Source§impl AddAssign<usize> for Cursor
impl AddAssign<usize> for Cursor
Source§fn add_assign(&mut self, rhs: usize)
fn add_assign(&mut self, rhs: usize)
Performs the
+= operation. Read moreAuto Trait Implementations§
impl !Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnwindSafe for Cursor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more