pub struct EscapeCode<T: ToTokens = At> {
pub escape_token: T,
pub expression: EscapedExpr,
}Fields§
§escape_token: T§expression: EscapedExprImplementations§
Source§impl EscapeCode
impl EscapeCode
pub fn visit_custom_children<V: Visitor<EscapeCode>>( visitor: &mut V, node: &mut EscapeCode, ) -> bool
Trait Implementations§
Source§impl<T: Clone + ToTokens> Clone for EscapeCode<T>
impl<T: Clone + ToTokens> Clone for EscapeCode<T>
Source§fn clone(&self) -> EscapeCode<T>
fn clone(&self) -> EscapeCode<T>
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<T> CustomNode for EscapeCode<T>
impl<T> CustomNode for EscapeCode<T>
Source§fn peek_element(input: ParseStream<'_>) -> bool
fn peek_element(input: ParseStream<'_>) -> bool
Peeks the token stream to decide whether this node should be parsed. Read more
Source§impl<T: ToTokens + Parse> ParseRecoverable for EscapeCode<T>
impl<T: ToTokens + Parse> ParseRecoverable for EscapeCode<T>
fn parse_recoverable( parser: &mut RecoverableContext, input: ParseStream<'_>, ) -> Option<Self>
Source§impl<T: ToTokens> ToTokens for EscapeCode<T>
impl<T: ToTokens> ToTokens for EscapeCode<T>
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<T> Freeze for EscapeCode<T>where
T: Freeze,
impl<T> RefUnwindSafe for EscapeCode<T>where
T: RefUnwindSafe,
impl<T = At> !Send for EscapeCode<T>
impl<T = At> !Sync for EscapeCode<T>
impl<T> Unpin for EscapeCode<T>where
T: Unpin,
impl<T> UnwindSafe for EscapeCode<T>where
T: 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.