Enum ion_binary_rs::NullIonValue
source · pub enum NullIonValue {
Show 14 variants
Null,
Bool,
Integer,
Float,
Decimal,
DateTime,
String,
Symbol,
Clob,
Blob,
List,
SExpr,
Struct,
Annotation,
}
Expand description
Instead of wrapping each IonValue in an Option in order to represent the null value, we opted to join all Null values in the IonValue::Null(_) which contains this struct. Here you can check what kind of null you got. We do this because we believe is more ergonomic and simplifies the API handling.
Variants§
Trait Implementations§
source§impl Clone for NullIonValue
impl Clone for NullIonValue
source§fn clone(&self) -> NullIonValue
fn clone(&self) -> NullIonValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NullIonValue
impl Debug for NullIonValue
source§impl PartialEq for NullIonValue
impl PartialEq for NullIonValue
source§fn eq(&self, other: &NullIonValue) -> bool
fn eq(&self, other: &NullIonValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NullIonValue
impl StructuralPartialEq for NullIonValue
Auto Trait Implementations§
impl RefUnwindSafe for NullIonValue
impl Send for NullIonValue
impl Sync for NullIonValue
impl Unpin for NullIonValue
impl UnwindSafe for NullIonValue
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