Struct wire_rs::WireReader
source · pub struct WireReader<'a, const E: bool = true> { /* private fields */ }Implementations
sourceimpl<'a, const E: bool> WireReader<'a, E>
impl<'a, const E: bool> WireReader<'a, E>
pub fn new(bytes: &'a [u8]) -> Self
pub fn new_with_endianness<const F: bool>(bytes: &'a [u8]) -> WireReader<'a, F>
pub fn advance(&mut self, amount: usize) -> Result<(), WireError>
pub fn advance_up_to(&mut self, amount: usize)
pub fn finalize(&self) -> Result<(), WireError>
pub fn is_empty(&self) -> bool
pub fn peek<T>(&self) -> Result<T, WireError>where
T: WireReadable,
pub fn peek_sized<T>(&self, size: usize) -> Result<&'a T, WireError>where
T: RefWireReadable + ?Sized,
pub fn read<T>(&mut self) -> Result<T, WireError>where
T: WireReadable,
pub fn read_and_finalize<T>(&mut self) -> Result<T, WireError>where
T: WireReadable,
pub fn read_part<T, const L: usize>(&mut self) -> Result<T, WireError>where
T: PartWireReadable,
pub fn read_ref<T>(&mut self, size: usize) -> Result<&'a T, WireError>where
T: RefWireReadable + ?Sized,
pub fn read_comp<T>(&mut self) -> Result<T, WireError>where
T: CompWireReadable<'a>,
pub fn read_remaining<T>(&mut self) -> Result<&'a T, WireError>where
T: RefWireReadable + ?Sized,
Auto Trait Implementations
impl<'a, const E: bool> RefUnwindSafe for WireReader<'a, E>
impl<'a, const E: bool> Send for WireReader<'a, E>
impl<'a, const E: bool> Sync for WireReader<'a, E>
impl<'a, const E: bool> Unpin for WireReader<'a, E>
impl<'a, const E: bool> UnwindSafe for WireReader<'a, E>
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