pub struct RawBinaryReader<R> where
    R: IonDataSource
{ /* private fields */ }

Implementations

Additional functionality that’s only available if the data source is in-memory, such as a Vec or &u8).

Returns a slice containing the entirety of this encoded value, including its field ID (if present), its annotations (if present), its header, and the encoded value itself. Calling this function does not advance the cursor.

Returns a slice containing the current value’s header’s raw bytes without advancing the cursor. Includes the type descriptor byte and any bytes used to represent the length field.

Returns a slice containing the current value’s raw bytes (not including its field ID, annotations, or type descriptor byte) without advancing the cursor.

Returns a slice containing the current value’s raw field ID bytes (if present) without advancing the cursor.

Returns a slice containing the current value’s annotations (if any) without advancing the cursor.

Trait Implementations

The type returned by calls to [next], indicating the next entity in the stream. Reader implementations representing different levels of abstraction will surface different sets of encoding artifacts. While an application-level Reader would only surface Ion values, a lower level Reader might surface symbol tables, Ion version markers, etc. Read more

The types used to represent field names, annotations, and symbol values at this Reader’s level of abstraction. Read more

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

Attempts to advance the cursor to the next value in the stream at the current depth. If no value is encountered, returns None; otherwise, returns the Ion type of the next value. Read more

Returns a value describing the stream entity over which the Reader is currently positioned. Depending on the Reader’s level of abstraction, that entity may or may not be an Ion value. Read more

If the current item is a value, returns that value’s Ion type. Otherwise, returns None.

Returns true if the reader is currently positioned over an Ion null of any type.

Returns an iterator that will yield each of the annotations for the current value in order. If there is no current value, returns an empty iterator. Read more

If the reader is positioned over a value with one or more annotations, returns true. Otherwise, returns false. Read more

Returns the number of annotations on the current value. If there is no current value, returns zero. Read more

If the current item is a field within a struct, returns Ok(_) with a Self::Symbol representing the field’s name; otherwise, returns an [IonError::IllegalOperation]. Read more

Attempts to read the current item as an Ion null and return its Ion type. If the current item is not a null or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion boolean and return it as a bool. If the current item is not a boolean or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion integer and return it as an i64. If the current item is not an integer or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion float and return it as an f32. If the current item is not a float or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion float and return it as an f64. If the current item is not a float or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion decimal and return it as a Decimal. If the current item is not a decimal or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion string and return it as a String. If the current item is not a string or an IO error is encountered while reading, returns [IonError]. Read more

Takes a function that expects a string and, once the string’s bytes are loaded, calls that function passing the string as a parameter. This allows users to avoid materializing the string if they only intend to inspect it for length, pattern matches, etc. Read more

Takes a function that expects a string and, once the string’s bytes are loaded, calls that function passing the string’s raw bytes as a parameter. Some implementations may be able to optimize this by calling the function without first validating that the bytes are utf8. As such, callers MUST NOT depend on the string contents being valid utf8. Read more

Attempts to read the current item as an Ion symbol and return it as a Self::Symbol. If the current item is not a symbol or an IO error is encountered while reading, returns [IonError]. Read more

Attempts to read the current item as an Ion blob and return it as a Vec. If the current item is not a blob or an IO error is encountered while reading, returns [IonError]. Read more

Takes a function that expects a byte slice and, once the blob’s bytes are loaded, calls that function passing the blob’s bytes as a parameter. This allows users to avoid materializing the clob if they only intend to inspect it for length, pattern matches, etc. Read more

Attempts to read the current item as an Ion clob and return it as a Vec. If the current item is not a clob or an IO error is encountered while reading, returns [IonError]. Read more

Takes a function that expects a byte slice and, once the clob’s bytes are loaded, calls that function passing the clob’s bytes as a parameter. This allows users to avoid materializing the clob if they only intend to inspect it for length, pattern matches, etc. Read more

Attempts to read the current item as an Ion timestamp and return Timestamp. If the current item is not a timestamp or an IO error is encountered while reading, returns [IonError]. Read more

If the current value is a container (i.e. a struct, list, or s-expression), positions the cursor at the beginning of that container’s sequence of child values. The application must call [next()] to advance to the first child value. If the current value is not a container, returns [IonError]. Read more

Positions the cursor at the end of the container currently being traversed. Calling [next()] will position the cursor over the item that follows the container. If the cursor is not in a container (i.e. it is already at the top level), returns [IonError]. Read more

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

Returns a usize indicating the Reader’s current level of nesting. That is: the number of times the Reader has stepped into a container without later stepping out. At the top level, this method returns 0. 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

Converts self into T using Into<T>. Read more

Converts self into a target type. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. 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.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more

Pipes a dereference into a function that cannot normally be called in suffix position. Read more

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

Provides immutable access for inspection. Read more

Calls tap in debug builds, and does nothing in release builds.

Provides mutable access for modification. Read more

Calls tap_mut in debug builds, and does nothing in release builds.

Provides immutable access to the reference for inspection.

Calls tap_ref in debug builds, and does nothing in release builds.

Provides mutable access to the reference for modification.

Calls tap_ref_mut in debug builds, and does nothing in release builds.

Provides immutable access to the borrow for inspection. Read more

Calls tap_borrow in debug builds, and does nothing in release builds.

Provides mutable access to the borrow for modification.

Calls tap_borrow_mut in debug builds, and does nothing in release builds. Read more

Immutably dereferences self for inspection.

Calls tap_deref in debug builds, and does nothing in release builds.

Mutably dereferences self for modification.

Calls tap_deref_mut in debug builds, and does nothing in release builds. Read more

Attempts to convert self into T using TryInto<T>. Read more

Attempts to convert self into a target type. 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.