pub struct Segment(/* private fields */);Implementations§
Source§impl Segment
impl Segment
pub fn as_str(&self) -> &str
pub fn is_empty(&self) -> bool
pub fn from_raw(s: String) -> Self
pub fn from_words<S: AsRef<str>>(words: &[S]) -> Self
pub fn tokenize(&self) -> Option<Vec<Token>>
pub fn has_unsafe_shell_syntax(&self) -> bool
pub fn has_unsafe_redirects(&self) -> bool
pub fn strip_env_prefix(&self) -> Segment
pub fn from_tokens_replacing( tokens: &[Token], find: &str, replace: &str, ) -> Self
pub fn strip_fd_redirects(&self) -> Segment
Trait Implementations§
impl Eq for Segment
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