#[repr(C)]pub struct pm_integer_t {
pub length: usize,
pub values: *mut u32,
pub value: u32,
pub negative: bool,
}
Expand description
A structure represents an arbitrary-sized integer.
Fields§
§length: usize
The number of allocated values. length is set to 0 if the integer fits into uint32_t.
values: *mut u32
List of 32-bit integers. Set to NULL if the integer fits into uint32_t.
value: u32
Embedded value for small integer. This value is set to 0 if the value does not fit into uint32_t.
negative: bool
Whether or not the integer is negative. It is stored this way so that a zeroed pm_integer_t is always positive zero.
Trait Implementations§
Source§impl Clone for pm_integer_t
impl Clone for pm_integer_t
Source§fn clone(&self) -> pm_integer_t
fn clone(&self) -> pm_integer_t
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for pm_integer_t
impl Debug for pm_integer_t
Source§impl Default for pm_integer_t
impl Default for pm_integer_t
impl Copy for pm_integer_t
Auto Trait Implementations§
impl Freeze for pm_integer_t
impl RefUnwindSafe for pm_integer_t
impl !Send for pm_integer_t
impl !Sync for pm_integer_t
impl Unpin for pm_integer_t
impl UnwindSafe for pm_integer_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more