Struct wire_rs::VectoredCursor
source · pub struct VectoredCursor<'a> { /* private fields */ }Implementations
sourceimpl<'a> VectoredCursor<'a>
impl<'a> VectoredCursor<'a>
pub fn new(wire: &'a [IoSlice<'a>]) -> Self
pub fn is_empty(&self) -> bool
pub fn get_next(&mut self) -> Result<u8, WireError>
pub fn try_get(&mut self, amount: usize) -> Option<&[u8]>
pub fn try_get_array<const L: usize>(&mut self) -> Option<&[u8; L]>
pub fn remaining(&self) -> usize
pub fn skip(&mut self, amount: usize) -> Result<(), WireError>
Trait Implementations
sourceimpl<'a> Clone for VectoredCursor<'a>
impl<'a> Clone for VectoredCursor<'a>
sourcefn clone(&self) -> VectoredCursor<'a>
fn clone(&self) -> VectoredCursor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for VectoredCursor<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for VectoredCursor<'a>
impl<'a> Send for VectoredCursor<'a>
impl<'a> Sync for VectoredCursor<'a>
impl<'a> Unpin for VectoredCursor<'a>
impl<'a> UnwindSafe for VectoredCursor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more