pub struct OpenSlot<'a, T, const REQUIRED: bool = false>(/* private fields */);Expand description
An open variant carrying the declaration of the cases the reader knows.
Set REQUIRED to propagate unknown tags to the nearest recovering scope.
Trait Implementations§
impl<T, const REQUIRED: bool> Copy for OpenSlot<'_, T, REQUIRED>
Source§impl<'de: 'a, 'a, T, const REQUIRED: bool> Deserialize<'de> for OpenSlot<'a, T, REQUIRED>
impl<'de: 'a, 'a, T, const REQUIRED: bool> Deserialize<'de> for OpenSlot<'a, T, REQUIRED>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a, T, const REQUIRED: bool> Forget for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> Freeze for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> Move for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> RefUnwindSafe for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> Send for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> Sync for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> Unpin for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> UnsafeUnpin for OpenSlot<'a, T, REQUIRED>
impl<'a, T, const REQUIRED: bool> UnwindSafe for OpenSlot<'a, T, REQUIRED>where
&'a [u8]: 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