#[non_exhaustive]pub struct Annotation<'a, T: EncodingType> {
pub critical: bool,
pub key: &'a [T::CodeUnit],
pub value: &'a [T::CodeUnit],
}Expand description
A record of an annotation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.critical: boolWhether this annotation is flagged as critical
key: &'a [T::CodeUnit]The parsed key value of the annotation
value: &'a [T::CodeUnit]The parsed value of the annotation
Trait Implementations§
Source§impl<'a, T: Clone + EncodingType> Clone for Annotation<'a, T>where
T::CodeUnit: Clone,
impl<'a, T: Clone + EncodingType> Clone for Annotation<'a, T>where
T::CodeUnit: Clone,
Source§fn clone(&self) -> Annotation<'a, T>
fn clone(&self) -> Annotation<'a, T>
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, T: PartialEq + EncodingType> PartialEq for Annotation<'a, T>where
T::CodeUnit: PartialEq,
impl<'a, T: PartialEq + EncodingType> PartialEq for Annotation<'a, T>where
T::CodeUnit: PartialEq,
impl<'a, T: EncodingType> StructuralPartialEq for Annotation<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Annotation<'a, T>
impl<'a, T> RefUnwindSafe for Annotation<'a, T>where
<T as EncodingType>::CodeUnit: RefUnwindSafe,
impl<'a, T> Send for Annotation<'a, T>where
<T as EncodingType>::CodeUnit: Sync,
impl<'a, T> Sync for Annotation<'a, T>where
<T as EncodingType>::CodeUnit: Sync,
impl<'a, T> Unpin for Annotation<'a, T>
impl<'a, T> UnwindSafe for Annotation<'a, T>where
<T as EncodingType>::CodeUnit: RefUnwindSafe,
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