pub enum StringElement {
Escape(EscapeSequence),
Content(StringContent),
}Expand description
Enum generated by strutuct! for StringElement.
Variants§
Escape(EscapeSequence)
Variant StringElement::Escape generated by strutuct!.
Content(StringContent)
Variant StringElement::Content generated by strutuct!.
Trait Implementations§
Source§impl Debug for StringElement
impl Debug for StringElement
Source§impl From<EscapeSequence> for StringElement
impl From<EscapeSequence> for StringElement
Source§fn from(value: EscapeSequence) -> Self
fn from(value: EscapeSequence) -> Self
Converts to this type from the input type.
Source§impl From<StringContent> for StringElement
impl From<StringContent> for StringElement
Source§fn from(value: StringContent) -> Self
fn from(value: StringContent) -> Self
Converts to this type from the input type.
Source§impl Lex for StringElement
impl Lex for StringElement
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for StringElementwhere
N: ExternalCstNode,
impl<N> Migrate<N> for StringElementwhere
N: ExternalCstNode,
Source§impl PrettyTree for StringElement
impl PrettyTree for StringElement
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for StringElement
impl RefUnwindSafe for StringElement
impl Send for StringElement
impl Sync for StringElement
impl Unpin for StringElement
impl UnsafeUnpin for StringElement
impl UnwindSafe for StringElement
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