pub enum AttrToken {
Attr(AttributeToken),
CondAttr(CondAttributeToken),
}
Variants§
Attr(AttributeToken)
CondAttr(CondAttributeToken)
Implementations§
Source§impl AttrToken
impl AttrToken
pub fn name(&self) -> String
Sourcepub fn attribute(&self) -> AttributeToken
pub fn attribute(&self) -> AttributeToken
return the attribute value in the case the item is
an attribute, or return the conditional attributes
in case the enum is CondAttributeToken
.
Sourcepub fn is_conditional(&self) -> bool
pub fn is_conditional(&self) -> bool
check is current element is an conditional item
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AttrToken
impl RefUnwindSafe for AttrToken
impl !Send for AttrToken
impl !Sync for AttrToken
impl Unpin for AttrToken
impl UnwindSafe for AttrToken
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