Enum ion_rs::SystemStreamItem
source · [−]pub enum SystemStreamItem {
VersionMarker(u8, u8),
SymbolTableValue(IonType),
SymbolTableNull(IonType),
Value(IonType),
Null(IonType),
Nothing,
}
Expand description
Raw stream elements that a SystemReader may encounter.
Variants
VersionMarker(u8, u8)
An Ion Version Marker (IVM) indicating the Ion major and minor version that were used to encode the values that follow.
SymbolTableValue(IonType)
A non-null Ion value that is part of an encoded local symbol table. This includes:
- Top-level structs annotated with $ion_symbol_table::
- Any fields nested inside such structs, but especially
imports
andsymbols
SymbolTableNull(IonType)
A null Ion value that is part of an encoded local symbol table.
Value(IonType)
A non-null Ion value and its corresponding Ion data type.
Null(IonType)
A null Ion value and its corresponding Ion data type.
Nothing
Indicates that the reader is not positioned over anything. This can happen:
- before the reader has begun processing the stream.
- after the reader has stepped into a container, but before the reader has called next()
- after the reader has stepped out of a container, but before the reader has called next()
- after the reader has read the last item in a container
Trait Implementations
sourceimpl Clone for SystemStreamItem
impl Clone for SystemStreamItem
sourcefn clone(&self) -> SystemStreamItem
fn clone(&self) -> SystemStreamItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemStreamItem
impl Debug for SystemStreamItem
sourceimpl PartialEq<SystemStreamItem> for SystemStreamItem
impl PartialEq<SystemStreamItem> for SystemStreamItem
sourcefn eq(&self, other: &SystemStreamItem) -> bool
fn eq(&self, other: &SystemStreamItem) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SystemStreamItem) -> bool
fn ne(&self, other: &SystemStreamItem) -> bool
This method tests for !=
.
impl Copy for SystemStreamItem
impl Eq for SystemStreamItem
impl StructuralEq for SystemStreamItem
impl StructuralPartialEq for SystemStreamItem
Auto Trait Implementations
impl RefUnwindSafe for SystemStreamItem
impl Send for SystemStreamItem
impl Sync for SystemStreamItem
impl Unpin for SystemStreamItem
impl UnwindSafe for SystemStreamItem
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more