pub enum StringElement {
EscapeSequence(EscapeSequence),
StringContent(StringContent),
}Variants§
EscapeSequence(EscapeSequence)
StringContent(StringContent)
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 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.
Source§impl<N> Reconstruct<N> for StringElementwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for StringElementwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToTokens for StringElement
impl ToTokens for StringElement
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