#[repr(C)]pub struct OptionalInt {
pub has_value: bool,
pub value: c_int,
}
Fields§
§has_value: bool
§value: c_int
Trait Implementations§
Source§impl Clone for OptionalInt
impl Clone for OptionalInt
Source§fn clone(&self) -> OptionalInt
fn clone(&self) -> OptionalInt
Returns a duplicate 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 OptionalInt
impl Debug for OptionalInt
Source§impl Default for OptionalInt
impl Default for OptionalInt
Source§fn default() -> OptionalInt
fn default() -> OptionalInt
Returns the “default value” for a type. Read more
Source§impl PartialEq for OptionalInt
impl PartialEq for OptionalInt
impl Copy for OptionalInt
impl StructuralPartialEq for OptionalInt
Auto Trait Implementations§
impl Freeze for OptionalInt
impl RefUnwindSafe for OptionalInt
impl Send for OptionalInt
impl Sync for OptionalInt
impl Unpin for OptionalInt
impl UnwindSafe for OptionalInt
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