pub enum IonTypeCode {
Show 16 variants
NullOrNop,
Boolean,
PositiveInteger,
NegativeInteger,
Float,
Decimal,
Timestamp,
Symbol,
String,
Clob,
Blob,
List,
SExpression,
Struct,
AnnotationOrIvm,
Reserved,
}
Expand description
Represents the type information found in the header byte of each binary Ion value.
While this value can be readily mapped to a user-level IonType
, it is a distinct concept.
The IonTypeCode enum captures system-level information that is not exposed to end users of the
library, including:
- Whether the cursor is positioned over whitespace that needs to be skipped.
- Whether the integer value being read is positive or negative.
- Whether the next type code is reserved.
See the Typed Value Formats section of the spec for more information.
Variants§
NullOrNop
Boolean
PositiveInteger
NegativeInteger
Float
Decimal
Timestamp
Symbol
String
Clob
Blob
List
SExpression
Struct
AnnotationOrIvm
Reserved
Implementations§
Source§impl IonTypeCode
impl IonTypeCode
Sourcepub const fn to_u8(self) -> u8
pub const fn to_u8(self) -> u8
Constant function to convert an IonTypeCode
into a u8
.
Trait Implementations§
Source§impl Clone for IonTypeCode
impl Clone for IonTypeCode
Source§fn clone(&self) -> IonTypeCode
fn clone(&self) -> IonTypeCode
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IonTypeCode
impl Debug for IonTypeCode
Source§impl PartialEq for IonTypeCode
impl PartialEq for IonTypeCode
Source§impl TryFrom<IonTypeCode> for IonType
impl TryFrom<IonTypeCode> for IonType
Source§impl TryFrom<u8> for IonTypeCode
impl TryFrom<u8> for IonTypeCode
impl Copy for IonTypeCode
impl Eq for IonTypeCode
impl StructuralPartialEq for IonTypeCode
Auto Trait Implementations§
impl Freeze for IonTypeCode
impl RefUnwindSafe for IonTypeCode
impl Send for IonTypeCode
impl Sync for IonTypeCode
impl Unpin for IonTypeCode
impl UnwindSafe for IonTypeCode
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