pub enum IonType {
Show 13 variants
Null,
Boolean,
Integer,
Float,
Decimal,
Timestamp,
Symbol,
String,
Clob,
Blob,
List,
SExpression,
Struct,
}
Expand description
Represents the Ion data type of a given value. To learn more about each data type, read the Ion Data Model section of the spec.
Variants
Null
Boolean
Integer
Float
Decimal
Timestamp
Symbol
String
Clob
Blob
List
SExpression
Struct
Implementations
sourceimpl IonType
impl IonType
pub fn is_container(&self) -> bool
Trait Implementations
sourceimpl<'val> From<IonType> for BorrowedElement<'val>
impl<'val> From<IonType> for BorrowedElement<'val>
sourceimpl From<IonType> for OwnedElement
impl From<IonType> for OwnedElement
sourceimpl PartialEq<IonType> for IonType
impl PartialEq<IonType> for IonType
sourceimpl PartialOrd<IonType> for IonType
impl PartialOrd<IonType> for IonType
sourcefn partial_cmp(&self, other: &IonType) -> Option<Ordering>
fn partial_cmp(&self, other: &IonType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl TryFrom<IonTypeCode> for IonType
impl TryFrom<IonTypeCode> for IonType
impl Copy for IonType
impl Eq for IonType
impl StructuralEq for IonType
impl StructuralPartialEq for IonType
Auto Trait Implementations
impl RefUnwindSafe for IonType
impl Send for IonType
impl Sync for IonType
impl Unpin for IonType
impl UnwindSafe for IonType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more