#[repr(i32)]pub enum CoercionContext {
Undefined = 0,
CoercionImplicit = 1,
CoercionAssignment = 2,
CoercionExplicit = 3,
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CoercionContext
impl Clone for CoercionContext
Source§fn clone(&self) -> CoercionContext
fn clone(&self) -> CoercionContext
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 CoercionContext
impl Debug for CoercionContext
Source§impl Default for CoercionContext
impl Default for CoercionContext
Source§fn default() -> CoercionContext
fn default() -> CoercionContext
Returns the “default value” for a type. Read more
Source§impl From<CoercionContext> for i32
impl From<CoercionContext> for i32
Source§fn from(value: CoercionContext) -> i32
fn from(value: CoercionContext) -> i32
Converts to this type from the input type.
Source§impl Hash for CoercionContext
impl Hash for CoercionContext
Source§impl Ord for CoercionContext
impl Ord for CoercionContext
Source§fn cmp(&self, other: &CoercionContext) -> Ordering
fn cmp(&self, other: &CoercionContext) -> 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 CoercionContext
impl PartialEq for CoercionContext
Source§impl PartialOrd for CoercionContext
impl PartialOrd for CoercionContext
impl Copy for CoercionContext
impl Eq for CoercionContext
impl StructuralPartialEq for CoercionContext
Auto Trait Implementations§
impl Freeze for CoercionContext
impl RefUnwindSafe for CoercionContext
impl Send for CoercionContext
impl Sync for CoercionContext
impl Unpin for CoercionContext
impl UnwindSafe for CoercionContext
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