pub struct Record<N>(pub Vec<N>);
Expand description
A Record Value
.
INVARIANT: The length of the contained vector MUST always be non-zero.
Tuple Fields§
§0: Vec<N>
Implementations§
source§impl<N> Record<N>
impl<N> Record<N>
sourcepub fn fields_mut(&mut self) -> &mut [N]
pub fn fields_mut(&mut self) -> &mut [N]
Retrieve a mutable slice containing the fields of the record.
sourcepub fn fields_vec(&self) -> &Vec<N>
pub fn fields_vec(&self) -> &Vec<N>
Retrieve a reference to a vector containing the record’s label and fields.
sourcepub fn fields_vec_mut(&mut self) -> &mut Vec<N>
pub fn fields_vec_mut(&mut self) -> &mut Vec<N>
Retrieve a mutable reference to a vector containing the record’s label and fields.
sourcepub fn finish(self) -> Value<N>where
N: NestedValue,
pub fn finish(self) -> Value<N>where
N: NestedValue,
Converts self
into a Value.
Trait Implementations§
source§impl<N: Ord> Ord for Record<N>
impl<N: Ord> Ord for Record<N>
source§impl<N: PartialEq> PartialEq for Record<N>
impl<N: PartialEq> PartialEq for Record<N>
source§impl<N: PartialOrd> PartialOrd for Record<N>
impl<N: PartialOrd> PartialOrd for Record<N>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<N: Eq> Eq for Record<N>
impl<N> StructuralPartialEq for Record<N>
Auto Trait Implementations§
impl<N> Freeze for Record<N>
impl<N> RefUnwindSafe for Record<N>where
N: RefUnwindSafe,
impl<N> Send for Record<N>where
N: Send,
impl<N> Sync for Record<N>where
N: Sync,
impl<N> Unpin for Record<N>where
N: Unpin,
impl<N> UnwindSafe for Record<N>where
N: 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