pub enum Cell {
Null,
Bool(bool),
Number {
value: f64,
lexeme: Option<Box<str>>,
},
String(Box<str>),
Missing,
}Expand description
One projected value.
Variants§
Null
Bool(bool)
Number
String(Box<str>)
Missing
The source had no value at the column’s path. Not null, not the empty string, not zero: a policy maps or rejects it later.
Implementations§
Source§impl Cell
impl Cell
Sourcepub fn from_datum(d: &Datum) -> Cell
pub fn from_datum(d: &Datum) -> Cell
From a retained value. A container is not a cell; it is serialized as compact JSON text, which is the lossy but unambiguous choice the standard binding makes and documents.
Sourcepub fn from_owned(d: Datum) -> Cell
pub fn from_owned(d: Datum) -> Cell
Cell::from_datum for a value the caller owns: the text moves
instead of being copied.
pub fn is_missing(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnsafeUnpin for Cell
impl UnwindSafe for Cell
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