#[non_exhaustive]pub struct Tag<'a> {
pub form: TagForm,
pub handle: &'a str,
pub suffix: &'a str,
pub resolved: Cow<'a, str>,
pub span: Span,
}Expand description
A tag property, read and resolved from the source by Sourced::tag.
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.form: TagFormHow the tag was written.
handle: &'a strThe handle as written (!, !!, !e!); empty for verbatim tags.
suffix: &'a strThe suffix as written; for verbatim tags, the text between < and >.
resolved: Cow<'a, str>The full tag after %TAG expansion and URI unescaping (e.g.
tag:yaml.org,2002:str), or ! for the non-specific tag.
span: SpanSpan of the whole property.
Implementations§
Trait Implementations§
impl<'a> Eq for Tag<'a>
impl<'a> StructuralPartialEq for Tag<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tag<'a>
impl<'a> RefUnwindSafe for Tag<'a>
impl<'a> Send for Tag<'a>
impl<'a> Sync for Tag<'a>
impl<'a> Unpin for Tag<'a>
impl<'a> UnsafeUnpin for Tag<'a>
impl<'a> UnwindSafe for Tag<'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