pub enum ConversionType {
Implicit,
Coercion,
}
Expand description
Whether the conversion is implicit, like #to_int
, or a coercion, like
#to_i
.
Variants§
Implicit
The conversion is implicit, like #to_int
.
Coercion
The conversion is a coercion, like #to_i
.
Implementations§
Source§impl ConversionType
impl ConversionType
Sourcepub const fn is_implicit(&self) -> bool
pub const fn is_implicit(&self) -> bool
Returns whether the conversion is implicit.
Sourcepub const fn is_coercion(&self) -> bool
pub const fn is_coercion(&self) -> bool
Returns whether the conversion is a coercion.
Trait Implementations§
Source§impl Clone for ConversionType
impl Clone for ConversionType
Source§fn clone(&self) -> ConversionType
fn clone(&self) -> ConversionType
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 ConversionType
impl Debug for ConversionType
Source§impl PartialEq for ConversionType
impl PartialEq for ConversionType
impl Copy for ConversionType
impl Eq for ConversionType
impl StructuralPartialEq for ConversionType
Auto Trait Implementations§
impl Freeze for ConversionType
impl RefUnwindSafe for ConversionType
impl Send for ConversionType
impl Sync for ConversionType
impl Unpin for ConversionType
impl UnwindSafe for ConversionType
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