pub struct RawBinaryWriter<W: Write> { /* private fields */ }
Expand description

A system-level streaming binary Ion writer. This writer does not provide symbol table management; symbol-related operations (e.g. setting field IDs and annotations or writing symbol values) require a valid symbol ID to be provided by the caller.

To produce a valid binary Ion stream, the writer MUST call Writer::write_ion_version_marker before writing any data.

Implementations

Returns a reference to the underlying io::Write implementation.

Returns a mutable reference to the underlying io::Write implementation. Modifying the underlying sink is an inherently risky operation and can result in unexpected behavior. It is not recommended for most use cases.

Trait Implementations

Formats the value using the given formatter. Read more

Writes an Ion null of the specified type.

Writes an Ion boolean with the specified value.

Writes an Ion integer with the specified value.

Writes an Ion integer with the specified value.

Writes an Ion float with the specified value.

Writes an Ion float with the specified value.

Writes an Ion decimal with the specified value.

Writes an Ion timestamp with the specified value.

Starts a container of the specified Ion type. If ion_type is not a List, SExpression, or Struct, step_in will return an Err.

Ends the current container. If the writer is at the top level, step_out will return an Err.

Writes any buffered data to the sink. This method can only be called when the writer is at the top level.

Returns the (major, minor) version of the Ion stream being written. If ion_version is called before an Ion Version Marker has been emitted, the version (1, 0) will be returned. Read more

Writes an Ion version marker to the output stream.

Returns true if this RawWriter supports writing field names, annotations, and symbol values directly as text; otherwise, returns false. Read more

Sets a list of annotations that will be applied to the next value that is written.

Writes an Ion symbol with the specified value to the output stream.

Writes an Ion string with the specified value to the output stream.

Writes an Ion clob with the specified value to the output stream.

Writes an Ion blob with the specified value to the output stream.

Sets the current field name to name. If the TextWriter is currently positioned inside of a struct, the field name will be written before the next value. Otherwise, it will be ignored. Read more

If the writer is positioned at the top level, returns None. Otherwise, returns Some(_) with the parent container’s IonType. Read more

Returns the number of containers that the writer has stepped into without subsequently stepping out. Read more

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 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.