pub struct RticAttr {
pub name: Option<Ident>,
pub elements: HashMap<String, Expr>,
}
Fields§
§name: Option<Ident>
§elements: HashMap<String, Expr>
Implementations§
source§impl RticAttr
impl RticAttr
sourcepub fn parse_from_attr(attribute: &Attribute) -> Result<Self>
pub fn parse_from_attr(attribute: &Attribute) -> Result<Self>
Parse a #[app(arg1=“val1”, …)] macro attribute
sourcepub fn parse_from_tokens(tokens: &TokenStream2) -> Result<Self>
pub fn parse_from_tokens(tokens: &TokenStream2) -> Result<Self>
Parse the tokenstream representation of the arguments of an #[app(arg1=“val1”, …)] macro attribute
Trait Implementations§
source§impl ToTokens for RticAttr
impl ToTokens for RticAttr
source§fn to_tokens(&self, tokens: &mut TokenStream2)
fn to_tokens(&self, tokens: &mut TokenStream2)
Reconstruct the tokenstream representation of #[app(arg1=“val1”, …)] macro attribute from the internal state of Self
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for RticAttr
impl RefUnwindSafe for RticAttr
impl !Send for RticAttr
impl !Sync for RticAttr
impl Unpin for RticAttr
impl UnwindSafe for RticAttr
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
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.