#[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
sourceimpl _ion_int
impl _ion_int
sourcepub fn try_assign_bigint(&mut self, src: &BigInt) -> IonCResult<()>
pub fn try_assign_bigint(&mut self, src: &BigInt) -> IonCResult<()>
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
sourcepub fn try_to_bigint(&self) -> IonCResult<BigInt>
pub fn try_to_bigint(&self) -> IonCResult<BigInt>
Constructs a BigInt
from this ION_INT
.
Trait Implementations
impl Copy for _ion_int
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more