pub enum RepeatedValue<'a> {
Zero,
Nan,
Uninit,
Value(&'a [u8]),
}Expand description
Represents a repeated value that can be compressed.
This enum is used as an argument to Encoder::compress_repeatval.
Variants§
Zero
Repeated zeros.
Nan
Repeated NaN values (for types that support NaN, like f32 and f64).
Uninit
Uninitialized values.
Value(&'a [u8])
A specific value to repeat.
The value must have the same size as the typesize used in the compression parameters.
Trait Implementations§
Source§impl<'a> Clone for RepeatedValue<'a>
impl<'a> Clone for RepeatedValue<'a>
Source§fn clone(&self) -> RepeatedValue<'a>
fn clone(&self) -> RepeatedValue<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RepeatedValue<'a>
impl<'a> Debug for RepeatedValue<'a>
Source§impl<'a> Hash for RepeatedValue<'a>
impl<'a> Hash for RepeatedValue<'a>
Source§impl<'a> PartialEq for RepeatedValue<'a>
impl<'a> PartialEq for RepeatedValue<'a>
impl<'a> Eq for RepeatedValue<'a>
impl<'a> StructuralPartialEq for RepeatedValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for RepeatedValue<'a>
impl<'a> RefUnwindSafe for RepeatedValue<'a>
impl<'a> Send for RepeatedValue<'a>
impl<'a> Sync for RepeatedValue<'a>
impl<'a> Unpin for RepeatedValue<'a>
impl<'a> UnwindSafe for RepeatedValue<'a>
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