pub struct Record {
pub data: VMap,
pub raw: String,
}Fields§
§data: VMap§raw: StringImplementations§
Source§impl Record
impl Record
pub fn put<T: Into<String>>(self, key: T, value: Value) -> Record
pub fn put_mut<T: Into<String>>(&mut self, key: T, value: Value)
Sourcepub fn put_expr(self, key: &Expr, value: Value) -> Result<Record, EvalError>
pub fn put_expr(self, key: &Expr, value: Value) -> Result<Record, EvalError>
Places a Value in the data based on the Expr accessor. Only works with NestedColumn exprs.
pub fn new<T: Into<String>>(raw: T) -> Record
pub fn ordering<T: Into<Expr> + Send + Sync>( columns: Vec<T>, ) -> impl Fn(&VMap, &VMap) -> Result<Ordering, EvalError> + Send + Sync
pub fn ordering_ref<'a, T: 'a + AsRef<str> + Send + Sync>( columns: &'a [T], ) -> impl Fn(&VMap, &VMap) -> Ordering + 'a + Send + Sync
Trait Implementations§
Source§impl Serialize for Record
impl Serialize for Record
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Record
impl StructuralPartialEq for Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more