[−][src]Struct ion_c_sys::reader::IonCReaderHandle
Wrapper over hREADER to make it easier to use readers in IonC correctly.
Specifically supports the Drop trait to make sure ion_reader_close is run.
Access to the underlying hREADER pointer is done by de-referencing the handle.
Implementations
impl<'a> IonCReaderHandle<'a>[src]
pub fn try_from_buf(
src: &'a [u8],
options: &mut ION_READER_OPTIONS
) -> Result<Self, IonCError>[src]
src: &'a [u8],
options: &mut ION_READER_OPTIONS
) -> Result<Self, IonCError>
Constructs a reader handle from a byte slice and given options.
Trait Implementations
impl<'_> Deref for IonCReaderHandle<'_>[src]
impl<'_> DerefMut for IonCReaderHandle<'_>[src]
impl<'_> Drop for IonCReaderHandle<'_>[src]
impl<'a> IonCReader for IonCReaderHandle<'a>[src]
fn next(&mut self) -> IonCResult<ION_TYPE>[src]
fn get_type(&self) -> IonCResult<ION_TYPE>[src]
fn step_in(&mut self) -> IonCResult<()>[src]
fn step_out(&mut self) -> IonCResult<()>[src]
fn depth(&self) -> IonCResult<i32>[src]
fn is_null(&self) -> IonCResult<bool>[src]
fn is_in_struct(&self) -> IonCResult<bool>[src]
fn get_field_name(&mut self) -> IonCResult<StrSliceRef<'_>>[src]
fn get_annotations(&mut self) -> IonCResult<StrSlicesRef<'_>>[src]
fn read_bool(&mut self) -> IonCResult<bool>[src]
fn read_i64(&mut self) -> IonCResult<i64>[src]
fn read_bigint(&mut self) -> IonCResult<BigInt>[src]
fn read_f64(&mut self) -> IonCResult<f64>[src]
fn read_bigdecimal(&mut self) -> IonCResult<BigDecimal>[src]
fn read_datetime(&mut self) -> IonCResult<IonDateTime>[src]
fn read_string(&mut self) -> IonCResult<StrSliceRef<'_>>[src]
fn read_bytes(&mut self) -> IonCResult<Vec<u8>>[src]
impl<'a> TryFrom<&'a [u8]> for IonCReaderHandle<'a>[src]
type Error = IonCError
The type returned in the event of a conversion error.
fn try_from(src: &'a [u8]) -> Result<Self, Self::Error>[src]
Constructs a reader from a byte slice with the default options.
impl<'a> TryFrom<&'a str> for IonCReaderHandle<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for IonCReaderHandle<'a>
impl<'a> !Send for IonCReaderHandle<'a>
impl<'a> !Sync for IonCReaderHandle<'a>
impl<'a> Unpin for IonCReaderHandle<'a>
impl<'a> UnwindSafe for IonCReaderHandle<'a>
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>,