Enum ion_rs::binary::IonTypeCode
source · 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 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 IonTypeCode
impl Debug for IonTypeCode
source§impl PartialEq<IonTypeCode> for IonTypeCode
impl PartialEq<IonTypeCode> for IonTypeCode
source§fn eq(&self, other: &IonTypeCode) -> bool
fn eq(&self, other: &IonTypeCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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 StructuralEq for IonTypeCode
impl StructuralPartialEq for IonTypeCode
Auto Trait Implementations§
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