pub enum LiteralStringText<T: TreeToken = SyntaxToken> {
Token(StringText<T>),
Empty,
}Expand description
Represents text of a LiteralString that contains no placeholders.
Variants§
Token(StringText<T>)
The entire string literal is represented with a single token.
Empty
The string literal is empty.
Implementations§
Source§impl<T: TreeToken> LiteralStringText<T>
impl<T: TreeToken> LiteralStringText<T>
Trait Implementations§
Source§impl<T: Clone + TreeToken> Clone for LiteralStringText<T>
impl<T: Clone + TreeToken> Clone for LiteralStringText<T>
Source§fn clone(&self) -> LiteralStringText<T>
fn clone(&self) -> LiteralStringText<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 moreimpl<T: Eq + TreeToken> Eq for LiteralStringText<T>
impl<T: TreeToken> StructuralPartialEq for LiteralStringText<T>
Auto Trait Implementations§
impl<T> Freeze for LiteralStringText<T>where
T: Freeze,
impl<T> RefUnwindSafe for LiteralStringText<T>where
T: RefUnwindSafe,
impl<T> Send for LiteralStringText<T>where
T: Send,
impl<T> Sync for LiteralStringText<T>where
T: Sync,
impl<T> Unpin for LiteralStringText<T>where
T: Unpin,
impl<T> UnwindSafe for LiteralStringText<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