Struct rutabaga_gfx::kumquat_support::RutabagaReader
source · pub struct RutabagaReader<'slice> {
data: &'slice [u8],
}
Fields§
§data: &'slice [u8]
Implementations§
source§impl<'slice> Reader<'slice>
impl<'slice> Reader<'slice>
sourcepub fn read_obj<T: FromBytes>(&mut self) -> IoResult<T>
pub fn read_obj<T: FromBytes>(&mut self) -> IoResult<T>
Reads and consumes an object from the buffer.
fn read(&mut self, buf: &mut [u8]) -> IoResult<usize>
pub fn available_bytes(&self) -> usize
sourcepub fn peek_obj<T: FromBytes>(&self) -> IoResult<T>
pub fn peek_obj<T: FromBytes>(&self) -> IoResult<T>
Reads an object from the buffer without consuming it.
pub fn read_exact(&mut self, buf: &mut [u8]) -> IoResult<()>
Auto Trait Implementations§
impl<'slice> RefUnwindSafe for Reader<'slice>
impl<'slice> Send for Reader<'slice>
impl<'slice> Sync for Reader<'slice>
impl<'slice> Unpin for Reader<'slice>
impl<'slice> UnwindSafe for Reader<'slice>
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