#[repr(i32)]pub enum GenericRet {
Unknown = -2,
Error = -1,
Success = 0,
}Expand description
For fallible generic C functions
Variants§
Trait Implementations§
Source§impl Clone for GenericRet
impl Clone for GenericRet
Source§fn clone(&self) -> GenericRet
fn clone(&self) -> GenericRet
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 GenericRet
impl Debug for GenericRet
Source§impl From<i32> for GenericRet
impl From<i32> for GenericRet
Source§impl Ord for GenericRet
impl Ord for GenericRet
Source§fn cmp(&self, other: &GenericRet) -> Ordering
fn cmp(&self, other: &GenericRet) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GenericRet
impl PartialEq for GenericRet
Source§impl PartialOrd for GenericRet
impl PartialOrd for GenericRet
impl Copy for GenericRet
impl Eq for GenericRet
impl StructuralPartialEq for GenericRet
Auto Trait Implementations§
impl Freeze for GenericRet
impl RefUnwindSafe for GenericRet
impl Send for GenericRet
impl Sync for GenericRet
impl Unpin for GenericRet
impl UnwindSafe for GenericRet
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