pub struct Coerce<S, T> { /* private fields */ }Expand description
A coercion with a proof obligation (modelled as a runtime-checked cast).
Implementations§
Auto Trait Implementations§
impl<S, T> Freeze for Coerce<S, T>
impl<S, T> RefUnwindSafe for Coerce<S, T>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Coerce<S, T>
impl<S, T> Sync for Coerce<S, T>
impl<S, T> Unpin for Coerce<S, T>
impl<S, T> UnsafeUnpin for Coerce<S, T>
impl<S, T> UnwindSafe for Coerce<S, T>where
S: UnwindSafe,
T: UnwindSafe,
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