pub enum SnaxItem {
Tag(SnaxTag),
SelfClosingTag(SnaxSelfClosingTag),
Fragment(SnaxFragment),
Content(TokenTree),
}
Expand description
One complete block in the syntax.
For more information, look at the documentation for the struct that each variant wraps.
Variants§
Tag(SnaxTag)
A standard tag, which can have attributes and children.
SelfClosingTag(SnaxSelfClosingTag)
An empty tag, which can only have attributes.
Fragment(SnaxFragment)
A fragment, containing a list of zero or more children.
Content(TokenTree)
A block of content, which can contain any Rust expression.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SnaxItem
impl RefUnwindSafe for SnaxItem
impl !Send for SnaxItem
impl !Sync for SnaxItem
impl Unpin for SnaxItem
impl UnwindSafe for SnaxItem
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