pub struct Record<'data, 'reader> { /* private fields */ }Expand description
A lazy view into a single NYXO object within the buffer. Field reads decode directly from the mapped bytes — no allocation.
Implementations§
Source§impl<'data, 'reader> Record<'data, 'reader>
impl<'data, 'reader> Record<'data, 'reader>
Sourcepub fn get_str(&self, key: &str) -> Option<&str>
pub fn get_str(&self, key: &str) -> Option<&str>
Read a &str field (zero-copy slice into the buffer).
Sourcepub fn get_str_path(&self, dot_path: &str) -> Option<&str>
pub fn get_str_path(&self, dot_path: &str) -> Option<&str>
Walk a dot-notated path and read the leaf as &str.
Example: record.get_str_path("address.city")
Sourcepub fn get_i64_path(&self, dot_path: &str) -> Option<i64>
pub fn get_i64_path(&self, dot_path: &str) -> Option<i64>
Walk a dot-notated path and read the leaf as i64.
Sourcepub fn get_f64_path(&self, dot_path: &str) -> Option<f64>
pub fn get_f64_path(&self, dot_path: &str) -> Option<f64>
Walk a dot-notated path and read the leaf as f64.
Sourcepub fn get_bool_path(&self, dot_path: &str) -> Option<bool>
pub fn get_bool_path(&self, dot_path: &str) -> Option<bool>
Walk a dot-notated path and read the leaf as bool.
Auto Trait Implementations§
impl<'data, 'reader> Freeze for Record<'data, 'reader>
impl<'data, 'reader> RefUnwindSafe for Record<'data, 'reader>
impl<'data, 'reader> Send for Record<'data, 'reader>
impl<'data, 'reader> Sync for Record<'data, 'reader>
impl<'data, 'reader> Unpin for Record<'data, 'reader>
impl<'data, 'reader> UnsafeUnpin for Record<'data, 'reader>
impl<'data, 'reader> UnwindSafe for Record<'data, 'reader>
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