Trait sodoken::AsBufReadSized [−][src]
pub trait AsBufReadSized<const N: usize>: 'static + AsBufRead + Debug + Send + Sync { fn read_lock_sized(&self) -> ReadGuardSized<'_, N>; fn to_read_unsized(&self) -> BufRead; }
Expand description
A sized readable buffer that may or may not be mem_locked.
Required methods
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>
[src]
fn read_lock_sized(&self) -> ReadGuardSized<'_, N>
[src]Obtain read access to the underlying buffer.
fn to_read_unsized(&self) -> BufRead
[src]
fn to_read_unsized(&self) -> BufRead
[src]Convert to an unsized BufRead instance without cloning internal data and without changing memory locking strategy.