pub struct Segment {
pub text: String,
pub sep: Option<String>,
}Expand description
One shell segment plus the separator that followed it (if any).
Fields§
§text: StringThe raw text of this segment (may have leading/trailing spaces).
sep: Option<String>The separator token that terminated this segment: &&, ||, ;, or |.
Trait Implementations§
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin 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