pub struct Segment {
pub raw: String,
pub command: Option<String>,
pub args: Vec<String>,
pub preceding_separator: Option<String>,
}Expand description
A segment of a tokenized command.
Fields§
§raw: StringThe raw text of this segment.
command: Option<String>The first word/command of this segment, if identifiable.
args: Vec<String>Arguments following the command.
preceding_separator: Option<String>The separator that preceded this segment (e.g., |, &&).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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