pub struct ShellClauseNode { /* private fields */ }Implementations§
Source§impl ShellClauseNode
impl ShellClauseNode
Sourcepub fn operator(&self) -> Option<ShellOperator>
pub fn operator(&self) -> Option<ShellOperator>
Returns the shell selection operator.
Sourcepub fn shell_name(&self) -> Option<SmolStr>
pub fn shell_name(&self) -> Option<SmolStr>
Returns the selected shell name.
Sourcepub fn content_range(&self) -> Option<TextRange>
pub fn content_range(&self) -> Option<TextRange>
Returns the clause range without surrounding whitespace.
Trait Implementations§
Source§impl Clone for ShellClauseNode
impl Clone for ShellClauseNode
Source§fn clone(&self) -> ShellClauseNode
fn clone(&self) -> ShellClauseNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ShellClauseNode
impl !Send for ShellClauseNode
impl !Sync for ShellClauseNode
impl !UnwindSafe for ShellClauseNode
impl Freeze for ShellClauseNode
impl Unpin for ShellClauseNode
impl UnsafeUnpin for ShellClauseNode
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