[][src]Struct ion_rs::Reader

pub struct Reader<C: Cursor> { /* fields omitted */ }

A streaming Ion reader that resolves symbol IDs into the appropriate text.

Reader itself is format-agnostic; all format-specific logic is handled by the wrapped Cursor implementation.

Implementations

impl<C: Cursor> Reader<C>[src]

pub fn new(cursor: C) -> Reader<C>[src]

pub fn set_symtab_event_handler<H>(&mut self, handler: H) where
    H: 'static + SystemEventHandler
[src]

Allows the user to specify an implementation of SymbolTableEventHandler to respond to otherwise internal events like symbol table imports and appends.

pub fn next(&mut self) -> IonResult<Option<(IonType, bool)>>[src]

Advances the cursor to the next user-level Ion value, processing any system-level directives encountered along the way.

pub fn field_name(&self) -> Option<&str>[src]

pub fn annotations(&self) -> impl Iterator<Item = &str>[src]

pub fn symbol_table(&self) -> &SymbolTable[src]

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

pub fn ion_version(&self) -> (u8, u8)[src]

pub fn ion_type(&self) -> Option<IonType>[src]

pub fn annotation_ids(&self) -> &[SymbolId][src]

pub fn field_id(&self) -> Option<SymbolId>[src]

pub fn read_null(&mut self) -> IonResult<Option<IonType>>[src]

pub fn read_bool(&mut self) -> IonResult<Option<bool>>[src]

pub fn read_i64(&mut self) -> IonResult<Option<i64>>[src]

pub fn read_f32(&mut self) -> IonResult<Option<f32>>[src]

pub fn read_f64(&mut self) -> IonResult<Option<f64>>[src]

pub fn read_big_decimal(&mut self) -> IonResult<Option<BigDecimal>>[src]

pub fn read_string(&mut self) -> IonResult<Option<String>>[src]

pub fn read_symbol_id(&mut self) -> IonResult<Option<SymbolId>>[src]

pub fn read_blob_bytes(&mut self) -> IonResult<Option<Vec<u8>>>[src]

pub fn read_clob_bytes(&mut self) -> IonResult<Option<Vec<u8>>>[src]

pub fn read_datetime(&mut self) -> IonResult<Option<DateTime<FixedOffset>>>[src]

pub fn step_in(&mut self) -> IonResult<()>[src]

pub fn step_out(&mut self) -> IonResult<()>[src]

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

pub fn string_ref_map<F, U>(&mut self, f: F) -> IonResult<Option<U>> where
    F: FnOnce(&str) -> U, 
[src]

pub fn string_bytes_map<F, U>(&mut self, f: F) -> IonResult<Option<U>> where
    F: FnOnce(&[u8]) -> U, 
[src]

pub fn clob_ref_map<F, U>(&mut self, f: F) -> IonResult<Option<U>> where
    F: FnOnce(&[u8]) -> U, 
[src]

pub fn blob_ref_map<F, U>(&mut self, f: F) -> IonResult<Option<U>> where
    F: FnOnce(&[u8]) -> U, 
[src]

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

Functionality that is only available if the data source we're reading from is in-memory, like a Vec or &u8.

Auto Trait Implementations

impl<C> !RefUnwindSafe for Reader<C>[src]

impl<C> !Send for Reader<C>[src]

impl<C> !Sync for Reader<C>[src]

impl<C> Unpin for Reader<C> where
    C: Unpin
[src]

impl<C> !UnwindSafe for Reader<C>[src]

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> From<T> for T[src]

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

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.