pub enum StrippedStringPart<N: TreeNode = SyntaxNode> {
Text(String),
Placeholder(Placeholder<N>),
}Expand description
Represents a multi-line string that’s been stripped of leading whitespace and it’s line continuations parsed. Placeholders are not changed and are copied as-is.
Variants§
Text(String)
A textual part of the string.
Placeholder(Placeholder<N>)
A placeholder encountered in the string.
Trait Implementations§
Source§impl<N: Clone + TreeNode> Clone for StrippedStringPart<N>
impl<N: Clone + TreeNode> Clone for StrippedStringPart<N>
Source§fn clone(&self) -> StrippedStringPart<N>
fn clone(&self) -> StrippedStringPart<N>
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<N: Eq + TreeNode> Eq for StrippedStringPart<N>
impl<N: TreeNode> StructuralPartialEq for StrippedStringPart<N>
Auto Trait Implementations§
impl<N> Freeze for StrippedStringPart<N>where
N: Freeze,
impl<N> RefUnwindSafe for StrippedStringPart<N>where
N: RefUnwindSafe,
impl<N> Send for StrippedStringPart<N>where
N: Send,
impl<N> Sync for StrippedStringPart<N>where
N: Sync,
impl<N> Unpin for StrippedStringPart<N>where
N: Unpin,
impl<N> UnwindSafe for StrippedStringPart<N>where
N: 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