Struct ion_rs::BinaryIonCursor[][src]

pub struct BinaryIonCursor<R> where
    R: IonDataSource
{ /* fields omitted */ }

Implementations

impl<T> BinaryIonCursor<Cursor<T>> where
    T: AsRef<[u8]>, 
[src]

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

pub fn field_id_length(&self) -> Option<usize>[src]

pub fn field_id_offset(&self) -> Option<usize>[src]

pub fn field_id_range(&self) -> Option<Range<usize>>[src]

pub fn annotations_length(&self) -> Option<usize>[src]

pub fn annotations_offset(&self) -> Option<usize>[src]

pub fn annotations_range(&self) -> Option<Range<usize>>[src]

pub fn header_length(&self) -> usize[src]

pub fn header_offset(&self) -> usize[src]

pub fn header_range(&self) -> Range<usize>[src]

pub fn value_length(&self) -> usize[src]

pub fn value_offset(&self) -> usize[src]

pub fn value_range(&self) -> Range<usize>[src]

pub fn raw_bytes(&self) -> Option<&[u8]>[src]

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.

pub fn raw_header_bytes(&self) -> Option<&[u8]>[src]

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.

pub fn raw_value_bytes(&self) -> Option<&[u8]>[src]

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

pub fn raw_field_id_bytes(&self) -> Option<&[u8]>[src]

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

pub fn raw_annotations_bytes(&self) -> Option<&[u8]>[src]

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

impl<R> BinaryIonCursor<R> where
    R: IonDataSource
[src]

pub fn new(data_source: R) -> Self[src]

pub fn is_null(&self) -> bool[src]

Trait Implementations

impl<R: IonDataSource> Cursor for BinaryIonCursor<R>[src]

type DataSource = R

Auto Trait Implementations

impl<R> !RefUnwindSafe for BinaryIonCursor<R>

impl<R> Send for BinaryIonCursor<R> where
    R: Send

impl<R> Sync for BinaryIonCursor<R> where
    R: Sync

impl<R> Unpin for BinaryIonCursor<R> where
    R: Unpin

impl<R> !UnwindSafe for BinaryIonCursor<R>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.