Struct yoke::trait_hack::YokeTraitHack [−][src]
#[repr(transparent)]pub struct YokeTraitHack<T>(pub T);
Expand description
A wrapper around a type T
, forwarding trait calls down to the inner type.
YokeTraitHack
supports Clone
and serde::Deserialize
out of the box. Other traits can
be implemented by the caller.
For more information, see the module-level documentation.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> Send for YokeTraitHack<T> where
T: Send,
impl<T> Sync for YokeTraitHack<T> where
T: Sync,
impl<T> Unpin for YokeTraitHack<T> where
T: Unpin,
Blanket Implementations
Mutably borrows from an owned value. Read more