pub enum SystemStreamItem {
    VersionMarker(u8u8),
    SymbolTableValue(IonType),
    SymbolTableNull(IonType),
    Value(IonType),
    Null(IonType),
    Nothing,
}
Expand description

Raw stream elements that a SystemReader may encounter.

Variants

VersionMarker(u8u8)

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 and symbols

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.