[−][src]Struct ion_c_sys::int::IonIntPtr
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]
impl DerefMut for IonIntPtr[src]
impl Drop for IonIntPtr[src]
Auto Trait Implementations
impl RefUnwindSafe for IonIntPtr
impl !Send for IonIntPtr
impl !Sync for IonIntPtr
impl Unpin for IonIntPtr
impl UnwindSafe for IonIntPtr
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>,