pub struct NotUsed {}
Expand description
Empty struct for when data should be discarded
Not using ()
, because serde’s
Deserialize
impl
is too strict.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NotUsed
impl<'de> Deserialize<'de> for NotUsed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NotUsed
impl RefUnwindSafe for NotUsed
impl Send for NotUsed
impl Sync for NotUsed
impl Unpin for NotUsed
impl UnwindSafe for NotUsed
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