pub struct Repeats<TC, const N: u8 = u8::MAX> {
pub inner: Options<TC>,
}
Expand description
A container that encodes repeated values with a None
variant, at the cost of extra bits for every record.
Fields§
§inner: Options<TC>
Some(x) encodes a value, and None indicates the prior x
value.
Trait Implementations§
source§impl<'de, TC, const N: u8> Deserialize<'de> for Repeats<TC, N>where
TC: Deserialize<'de>,
impl<'de, TC, const N: u8> Deserialize<'de> for Repeats<TC, N>where
TC: Deserialize<'de>,
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
impl<TC, const N: u8> StructuralPartialEq for Repeats<TC, N>
Auto Trait Implementations§
impl<TC, const N: u8> Freeze for Repeats<TC, N>where
TC: Freeze,
impl<TC, const N: u8> RefUnwindSafe for Repeats<TC, N>where
TC: RefUnwindSafe,
impl<TC, const N: u8> Send for Repeats<TC, N>where
TC: Send,
impl<TC, const N: u8> Sync for Repeats<TC, N>where
TC: Sync,
impl<TC, const N: u8> Unpin for Repeats<TC, N>where
TC: Unpin,
impl<TC, const N: u8> UnwindSafe for Repeats<TC, N>where
TC: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)