pub struct Record { /* private fields */ }
Implementations§
Source§impl Record
impl Record
Sourcepub fn new(reader: &mut Reader, input: &[u8]) -> Option<Self>
pub fn new(reader: &mut Reader, input: &[u8]) -> Option<Self>
§Panics
Panics if input.len() * 2
overflows usize
.
Sourcepub fn from_buf(reader: &mut Reader, input: &mut dyn BufRead) -> Option<Self>
pub fn from_buf(reader: &mut Reader, input: &mut dyn BufRead) -> Option<Self>
§Panics
Panics if line length in input * 2 overflows usize
.
pub fn get(&self, i: usize) -> Option<&[u8]>
pub fn fields(&self) -> Vec<&[u8]>
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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