[][src]Struct ion_c_sys::_ion_int

#[repr(C)]pub struct _ion_int {
    pub _owner: *mut c_void,
    pub _signum: c_int,
    pub _len: SIZE,
    pub _digits: *mut II_DIGIT,
}

Fields

_owner: *mut c_void_signum: c_int_len: SIZE_digits: *mut II_DIGIT

Implementations

impl _ion_int[src]

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 Clone for _ion_int[src]

impl Copy for _ion_int[src]

impl Debug for _ion_int[src]

impl Default for _ion_int[src]

Auto Trait Implementations

impl RefUnwindSafe for _ion_int

impl !Send for _ion_int

impl !Sync for _ion_int

impl Unpin for _ion_int

impl UnwindSafe for _ion_int

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.