pub struct CodamaAttribute<'a> {
pub ast: &'a Attribute,
pub directive: CodamaDirective,
}Fields§
§ast: &'a Attribute§directive: CodamaDirectiveImplementations§
Source§impl<'a> CodamaAttribute<'a>
impl<'a> CodamaAttribute<'a>
pub fn parse(ast: &'a Attribute, ctx: &AttributeContext<'_>) -> Result<Self>
pub fn account(&self) -> Option<&AccountDirective>
Trait Implementations§
Source§impl<'a> Debug for CodamaAttribute<'a>
impl<'a> Debug for CodamaAttribute<'a>
Source§impl<'a> From<CodamaAttribute<'a>> for Attribute<'a>
impl<'a> From<CodamaAttribute<'a>> for Attribute<'a>
Source§fn from(value: CodamaAttribute<'a>) -> Self
fn from(value: CodamaAttribute<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for CodamaAttribute<'a>
impl<'a> PartialEq for CodamaAttribute<'a>
impl<'a> StructuralPartialEq for CodamaAttribute<'a>
Auto Trait Implementations§
impl<'a> Freeze for CodamaAttribute<'a>
impl<'a> RefUnwindSafe for CodamaAttribute<'a>
impl<'a> !Send for CodamaAttribute<'a>
impl<'a> !Sync for CodamaAttribute<'a>
impl<'a> Unpin for CodamaAttribute<'a>
impl<'a> UnwindSafe for CodamaAttribute<'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