pub struct Upcast<T: ?Sized>(pub Arc<T>);Expand description
The operations of a derived abstract interface used as those of a base
one: the generator implements the servant trait of each abstract
interface for Upcast<T> of every T that implements it, so that an
Arc<dyn DerivedServant> becomes an Arc<dyn BaseServant> without
trait upcasting.
Tuple Fields§
§0: Arc<T>Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for Upcast<T>where
T: ?Sized,
impl<T> Freeze for Upcast<T>
impl<T> Move for Upcast<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Upcast<T>
impl<T> Send for Upcast<T>
impl<T> Sync for Upcast<T>
impl<T> Unpin for Upcast<T>
impl<T> UnsafeUnpin for Upcast<T>
impl<T> UnwindSafe for Upcast<T>
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