pub struct AttributeToken {
pub name: TokenTree,
pub value: Option<TokenTree>,
}
Expand description
Inner attribute is the simplest attribute that you can find inside the sintax, in fact this kind of struct contains information regarding the attribute itself.
// #[pin_project]
// #[key = value]
// #![pin_project]
// #![key = value]
Fields§
§name: TokenTree
name of the attribute
value: Option<TokenTree>
an optional value of the attribute
Trait Implementations§
Source§impl Clone for AttributeToken
impl Clone for AttributeToken
Source§fn clone(&self) -> AttributeToken
fn clone(&self) -> AttributeToken
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 AttributeToken
impl RefUnwindSafe for AttributeToken
impl !Send for AttributeToken
impl !Sync for AttributeToken
impl Unpin for AttributeToken
impl UnwindSafe for AttributeToken
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