pub enum UnvalidatedBitField {
Validated(BitField),
Unvalidated(Vec<u8>),
}
Expand description
A bit field that may not yet have been validated for valid RLE+. Used to defer this validation step until when the bit field is first used, rather than at deserialization.
Variants§
Implementations§
source§impl UnvalidatedBitField
impl UnvalidatedBitField
sourcepub fn validate_mut(&mut self) -> Result<&mut BitField, Error>
pub fn validate_mut(&mut self) -> Result<&mut BitField, Error>
Validates the RLE+ encoding of the bit field, returning a unique reference to the decoded bit field.
Trait Implementations§
source§impl Debug for UnvalidatedBitField
impl Debug for UnvalidatedBitField
source§impl<'de> Deserialize<'de> for UnvalidatedBitField
impl<'de> Deserialize<'de> for UnvalidatedBitField
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
source§impl From<BitField> for UnvalidatedBitField
impl From<BitField> for UnvalidatedBitField
source§impl Serialize for UnvalidatedBitField
impl Serialize for UnvalidatedBitField
source§impl TryFrom<UnvalidatedBitField> for BitField
impl TryFrom<UnvalidatedBitField> for BitField
Auto Trait Implementations§
impl Freeze for UnvalidatedBitField
impl RefUnwindSafe for UnvalidatedBitField
impl Send for UnvalidatedBitField
impl Sync for UnvalidatedBitField
impl Unpin for UnvalidatedBitField
impl UnwindSafe for UnvalidatedBitField
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