pub struct ShellEscaped(/* private fields */);Expand description
Wrapper type for shell-escaped strings
This newtype pattern ensures that strings used in shell contexts are properly escaped at compile time.
Implementations§
Source§impl ShellEscaped
impl ShellEscaped
Sourcepub fn single_quote(s: &str) -> Self
pub fn single_quote(s: &str) -> Self
Create a new shell-escaped string for single-quote context
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Consume and return the inner string
Trait Implementations§
Source§impl AsRef<str> for ShellEscaped
impl AsRef<str> for ShellEscaped
Source§impl Clone for ShellEscaped
impl Clone for ShellEscaped
Source§fn clone(&self) -> ShellEscaped
fn clone(&self) -> ShellEscaped
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 Debug for ShellEscaped
impl Debug for ShellEscaped
Source§impl Display for ShellEscaped
impl Display for ShellEscaped
Source§impl PartialEq for ShellEscaped
impl PartialEq for ShellEscaped
impl Eq for ShellEscaped
impl StructuralPartialEq for ShellEscaped
Auto Trait Implementations§
impl Freeze for ShellEscaped
impl RefUnwindSafe for ShellEscaped
impl Send for ShellEscaped
impl Sync for ShellEscaped
impl Unpin for ShellEscaped
impl UnwindSafe for ShellEscaped
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