pub enum StrippedCommandPart<N: TreeNode = SyntaxNode> {
Text(String),
Placeholder(Placeholder<N>),
}Expand description
A command part stripped of leading whitespace.
Placeholders are not changed and are copied as is.
Variants§
Trait Implementations§
Source§impl<N: Clone + TreeNode> Clone for StrippedCommandPart<N>
impl<N: Clone + TreeNode> Clone for StrippedCommandPart<N>
Source§fn clone(&self) -> StrippedCommandPart<N>
fn clone(&self) -> StrippedCommandPart<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 StrippedCommandPart<N>
impl<N: TreeNode> StructuralPartialEq for StrippedCommandPart<N>
Auto Trait Implementations§
impl<N> Freeze for StrippedCommandPart<N>where
N: Freeze,
impl<N> RefUnwindSafe for StrippedCommandPart<N>where
N: RefUnwindSafe,
impl<N> Send for StrippedCommandPart<N>where
N: Send,
impl<N> Sync for StrippedCommandPart<N>where
N: Sync,
impl<N> Unpin for StrippedCommandPart<N>where
N: Unpin,
impl<N> UnwindSafe for StrippedCommandPart<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