#[non_exhaustive]pub enum ContextRequirement {
Presence,
Length,
ElementContext,
}Expand description
Identifies information required by a contextual codec.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Presence
Whether a value is present on the wire.
Length
The number of elements in a contextual array.
ElementContext
A context for an individual array element.
Trait Implementations§
Source§impl Clone for ContextRequirement
impl Clone for ContextRequirement
Source§fn clone(&self) -> ContextRequirement
fn clone(&self) -> ContextRequirement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextRequirement
Source§impl Debug for ContextRequirement
impl Debug for ContextRequirement
Source§impl Display for ContextRequirement
impl Display for ContextRequirement
impl Eq for ContextRequirement
Source§impl Hash for ContextRequirement
impl Hash for ContextRequirement
Source§impl PartialEq for ContextRequirement
impl PartialEq for ContextRequirement
impl StructuralPartialEq for ContextRequirement
Auto Trait Implementations§
impl Freeze for ContextRequirement
impl RefUnwindSafe for ContextRequirement
impl Send for ContextRequirement
impl Sync for ContextRequirement
impl Unpin for ContextRequirement
impl UnsafeUnpin for ContextRequirement
impl UnwindSafe for ContextRequirement
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