Struct rustpython_compiler_core::marshal::Cursor
source · pub struct Cursor<B> {
pub data: B,
pub position: usize,
}
Fields§
§data: B
§position: usize
Trait Implementations§
source§impl<B: AsRef<[u8]>> Read for Cursor<B>
impl<B: AsRef<[u8]>> Read for Cursor<B>
fn read_slice(&mut self, n: u32) -> Result<&[u8], MarshalError>
fn read_array<const N: usize>(&mut self) -> Result<&[u8; N], MarshalError>
fn read_str(&mut self, len: u32) -> Result<&str, MarshalError>
fn read_u8(&mut self) -> Result<u8, MarshalError>
fn read_u16(&mut self) -> Result<u16, MarshalError>
fn read_u32(&mut self) -> Result<u32, MarshalError>
fn read_u64(&mut self) -> Result<u64, MarshalError>
Auto Trait Implementations§
impl<B> Freeze for Cursor<B>where
B: Freeze,
impl<B> RefUnwindSafe for Cursor<B>where
B: RefUnwindSafe,
impl<B> Send for Cursor<B>where
B: Send,
impl<B> Sync for Cursor<B>where
B: Sync,
impl<B> Unpin for Cursor<B>where
B: Unpin,
impl<B> UnwindSafe for Cursor<B>where
B: UnwindSafe,
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