pub struct NodeFragment<C> {
pub tag_open: FragmentOpen,
pub children: Vec<Node<C>>,
pub tag_close: Option<FragmentClose>,
}Expand description
Fragement node.
Fragment: <></>
Fields§
§tag_open: FragmentOpenOpen fragment token
children: Vec<Node<C>>Children of the fragment node.
tag_close: Option<FragmentClose>Close fragment token
Implementations§
Source§impl<C> NodeFragment<C>
impl<C> NodeFragment<C>
Trait Implementations§
Source§impl<C: Clone> Clone for NodeFragment<C>
impl<C: Clone> Clone for NodeFragment<C>
Source§fn clone(&self) -> NodeFragment<C>
fn clone(&self) -> NodeFragment<C>
Returns a duplicate 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 moreSource§impl<C: Debug> Debug for NodeFragment<C>
impl<C: Debug> Debug for NodeFragment<C>
Source§impl<C: CustomNode> ParseRecoverable for NodeFragment<C>
impl<C: CustomNode> ParseRecoverable for NodeFragment<C>
fn parse_recoverable( parser: &mut RecoverableContext, input: ParseStream<'_>, ) -> Option<Self>
Source§impl<C: CustomNode> ToTokens for NodeFragment<C>
impl<C: CustomNode> ToTokens for NodeFragment<C>
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
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<C> Freeze for NodeFragment<C>
impl<C> RefUnwindSafe for NodeFragment<C>where
C: RefUnwindSafe,
impl<C> !Send for NodeFragment<C>
impl<C> !Sync for NodeFragment<C>
impl<C> Unpin for NodeFragment<C>where
C: Unpin,
impl<C> UnwindSafe for NodeFragment<C>where
C: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.