#[repr(C)]pub enum ContingencyTypeOptional {
NoContingency = 0,
Oco = 1,
Oto = 2,
Ouo = 3,
}Expand description
The stable zero-inclusive contingency-type representation required by the existing C ABI.
Use Option<ContingencyType> for ordinary Rust optionality.
Variants§
NoContingency = 0
Compatibility value for no specified contingency type.
This value may be removed in a future version.
Oco = 1
One-Cancels-the-Other.
Oto = 2
One-Triggers-the-Other.
Ouo = 3
One-Updates-the-Other.
Implementations§
Source§impl ContingencyTypeOptional
impl ContingencyTypeOptional
pub const fn as_option(self) -> Option<ContingencyType>
Trait Implementations§
Source§impl AsRef<str> for ContingencyTypeOptional
impl AsRef<str> for ContingencyTypeOptional
Source§impl Clone for ContingencyTypeOptional
impl Clone for ContingencyTypeOptional
Source§fn clone(&self) -> ContingencyTypeOptional
fn clone(&self) -> ContingencyTypeOptional
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContingencyTypeOptional
Source§impl Debug for ContingencyTypeOptional
impl Debug for ContingencyTypeOptional
Source§impl Default for ContingencyTypeOptional
impl Default for ContingencyTypeOptional
Source§fn default() -> ContingencyTypeOptional
fn default() -> ContingencyTypeOptional
Returns the “default value” for a type. Read more
Source§impl Display for ContingencyTypeOptional
impl Display for ContingencyTypeOptional
impl Eq for ContingencyTypeOptional
Source§impl From<Option<ContingencyType>> for ContingencyTypeOptional
impl From<Option<ContingencyType>> for ContingencyTypeOptional
Source§fn from(value: Option<ContingencyType>) -> Self
fn from(value: Option<ContingencyType>) -> Self
Converts to this type from the input type.
Source§impl FromStr for ContingencyTypeOptional
impl FromStr for ContingencyTypeOptional
Source§impl Hash for ContingencyTypeOptional
impl Hash for ContingencyTypeOptional
Source§impl PartialEq for ContingencyTypeOptional
impl PartialEq for ContingencyTypeOptional
impl StructuralPartialEq for ContingencyTypeOptional
Auto Trait Implementations§
impl Freeze for ContingencyTypeOptional
impl RefUnwindSafe for ContingencyTypeOptional
impl Send for ContingencyTypeOptional
impl Sync for ContingencyTypeOptional
impl Unpin for ContingencyTypeOptional
impl UnsafeUnpin for ContingencyTypeOptional
impl UnwindSafe for ContingencyTypeOptional
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more