[][src]Struct ion_c_sys::int::IonIntPtr

pub struct IonIntPtr { /* fields omitted */ }

Smart Pointer over ION_INT to ensure that ion_int_free is invoked on the instance.

Implementations

impl IonIntPtr[src]

pub fn try_new() -> IonCResult<Self>[src]

Allocates a new ION_INT to zero.

pub fn try_from_bigint(value: &BigInt) -> IonCResult<Self>[src]

Allocates a new ION_INT from a BigInt.

pub fn as_mut_ptr(&mut self) -> *mut ION_INT[src]

Returns the underlying ION_INT as a mutable pointer.

Methods from Deref<Target = ION_INT>

pub fn try_assign_bigint(&mut self, src: &BigInt) -> IonCResult<()>[src]

Constructs a BigInt from this ION_INT.

Note that since BigInt does not have a view into its digits, this method will make an intermediate copy as the big-endian encoded byte vector that will then be stored into this ION_INT

pub fn try_to_bigint(&self) -> IonCResult<BigInt>[src]

Constructs a BigInt from this ION_INT.

Trait Implementations

impl Debug for IonIntPtr[src]

impl Deref for IonIntPtr[src]

type Target = ION_INT

The resulting type after dereferencing.

impl DerefMut for IonIntPtr[src]

impl Drop for IonIntPtr[src]

Auto Trait Implementations

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.