pub struct LexedWordSegment<'a> { /* private fields */ }Expand description
One segment of a lexed shell word, optionally backed by source text.
Implementations§
Source§impl<'a> LexedWordSegment<'a>
impl<'a> LexedWordSegment<'a>
Sourcepub const fn kind(&self) -> LexedWordSegmentKind
pub const fn kind(&self) -> LexedWordSegmentKind
Return the lexical classification of this segment.
Sourcepub fn wrapper_span(&self) -> Option<Span>
pub fn wrapper_span(&self) -> Option<Span>
Return the span including surrounding quoting syntax when available.
Trait Implementations§
Source§impl<'a> Clone for LexedWordSegment<'a>
impl<'a> Clone for LexedWordSegment<'a>
Source§fn clone(&self) -> LexedWordSegment<'a>
fn clone(&self) -> LexedWordSegment<'a>
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 moreSource§impl<'a> Debug for LexedWordSegment<'a>
impl<'a> Debug for LexedWordSegment<'a>
Source§impl<'a> PartialEq for LexedWordSegment<'a>
impl<'a> PartialEq for LexedWordSegment<'a>
impl<'a> Eq for LexedWordSegment<'a>
impl<'a> StructuralPartialEq for LexedWordSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for LexedWordSegment<'a>
impl<'a> RefUnwindSafe for LexedWordSegment<'a>
impl<'a> Send for LexedWordSegment<'a>
impl<'a> Sync for LexedWordSegment<'a>
impl<'a> Unpin for LexedWordSegment<'a>
impl<'a> UnsafeUnpin for LexedWordSegment<'a>
impl<'a> UnwindSafe for LexedWordSegment<'a>
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