pub enum CoercionSource {
AsCast,
Implicit,
}
Expand description
Represents how a CastKind::PointerCoercion
was constructed.
Used only for diagnostics.
Variants§
AsCast
The coercion was manually written by the user with an as
cast.
Implicit
The coercion was automatically inserted by the compiler.
Auto Trait Implementations§
impl Freeze for CoercionSource
impl RefUnwindSafe for CoercionSource
impl Send for CoercionSource
impl Sync for CoercionSource
impl Unpin for CoercionSource
impl UnwindSafe for CoercionSource
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