[−][src]Struct ion_rs::Reader
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 + SymbolTableEventHandler,
[src]
H: 'static + SymbolTableEventHandler,
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 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 string_ref_map<F, T>(&mut self, f: F) -> IonResult<Option<T>> where
F: FnOnce(&str) -> T,
[src]
F: FnOnce(&str) -> T,
pub fn string_bytes_map<F, T>(&mut self, f: F) -> IonResult<Option<T>> where
F: FnOnce(&[u8]) -> T,
[src]
F: FnOnce(&[u8]) -> T,
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]
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
Auto Trait Implementations
impl<C> !RefUnwindSafe for Reader<C>
impl<C> !Send for Reader<C>
impl<C> !Sync for Reader<C>
impl<C> Unpin for Reader<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for Reader<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,