Enum virtue::utils::ParsedAttribute
source · #[non_exhaustive]pub enum ParsedAttribute {
Tag(Ident),
Property(Ident, Literal),
}
Expand description
A parsed attribute. See parse_tagged_attribute
for more information.
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.
Tag(Ident)
A tag, created by parsing #[prefix(foo)]
Property(Ident, Literal)
A property, created by parsing #[prefix(foo = "bar")]
Trait Implementations§
source§impl Clone for ParsedAttribute
impl Clone for ParsedAttribute
source§fn clone(&self) -> ParsedAttribute
fn clone(&self) -> ParsedAttribute
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ParsedAttribute
impl RefUnwindSafe for ParsedAttribute
impl !Send for ParsedAttribute
impl !Sync for ParsedAttribute
impl Unpin for ParsedAttribute
impl UnwindSafe for ParsedAttribute
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