pub struct Coercion {
pub name: Name,
pub source: Expr,
pub target: Expr,
pub priority: i32,
}Expand description
Coercion descriptor: maps a source type to a target type via a coercion function.
Fields§
§name: NameName of the coercion function.
source: ExprSource type (the type being coerced from).
target: ExprTarget type (the type being coerced to).
priority: i32Priority (higher = preferred when multiple coercions apply).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Coercion
impl RefUnwindSafe for Coercion
impl Send for Coercion
impl Sync for Coercion
impl Unpin for Coercion
impl UnsafeUnpin for Coercion
impl UnwindSafe for Coercion
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