pub struct Annotation<'a> {
pub fixed: &'a AnnotationFixed,
pub strings: &'a [u8],
}
Expand description
S_ANNOTATION
Fields§
§fixed: &'a AnnotationFixed
§strings: &'a [u8]
Implementations§
Source§impl<'a> Annotation<'a>
impl<'a> Annotation<'a>
Sourcepub fn iter_strings(&self) -> AnnotationIterStrings<'a> ⓘ
pub fn iter_strings(&self) -> AnnotationIterStrings<'a> ⓘ
Iterates the strings stored in the annotation.
Trait Implementations§
Source§impl<'a> Clone for Annotation<'a>
impl<'a> Clone for Annotation<'a>
Source§fn clone(&self) -> Annotation<'a>
fn clone(&self) -> Annotation<'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 Annotation<'a>
impl<'a> Debug for Annotation<'a>
Source§impl<'a> Parse<'a> for Annotation<'a>
impl<'a> Parse<'a> for Annotation<'a>
Source§fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
fn from_parser(p: &mut Parser<'a>) -> Result<Self, ParserError>
Parses an instance of
Self
from a Parser
.
This allows the caller to detect which bytes were not consumed at the end of the input.Auto Trait Implementations§
impl<'a> Freeze for Annotation<'a>
impl<'a> RefUnwindSafe for Annotation<'a>
impl<'a> Send for Annotation<'a>
impl<'a> Sync for Annotation<'a>
impl<'a> Unpin for Annotation<'a>
impl<'a> UnwindSafe for Annotation<'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