[][src]Struct ion_c_sys::reader::IonCReaderHandle

pub struct IonCReaderHandle<'a> { /* fields omitted */ }

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]

Constructs a reader handle from a byte slice and given options.

Trait Implementations

impl<'_> Deref for IonCReaderHandle<'_>[src]

type Target = hREADER

The resulting type after dereferencing.

impl<'_> DerefMut for IonCReaderHandle<'_>[src]

impl<'_> Drop for IonCReaderHandle<'_>[src]

impl<'a> IonCReader for IonCReaderHandle<'a>[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]

type Error = IonCError

The type returned in the event of a conversion error.

fn try_from(src: &'a str) -> Result<Self, Self::Error>[src]

Constructs a reader from a str slice with the default options.

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]

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.