Struct NpmScriptCommand
pub struct NpmScriptCommand(/* private fields */);Implementations§
§impl NpmScriptCommand
impl NpmScriptCommand
pub fn new(input: &str) -> Result<NpmScriptCommand, NpmTextError>
pub fn new(input: &str) -> Result<NpmScriptCommand, NpmTextError>
Creates non-empty npm text metadata.
§Errors
Returns NpmTextError::Empty when input is empty after trimming.
Trait Implementations§
§impl Clone for NpmScriptCommand
impl Clone for NpmScriptCommand
§fn clone(&self) -> NpmScriptCommand
fn clone(&self) -> NpmScriptCommand
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 more§impl Debug for NpmScriptCommand
impl Debug for NpmScriptCommand
§impl Display for NpmScriptCommand
impl Display for NpmScriptCommand
§impl Hash for NpmScriptCommand
impl Hash for NpmScriptCommand
§impl Ord for NpmScriptCommand
impl Ord for NpmScriptCommand
§fn cmp(&self, other: &NpmScriptCommand) -> Ordering
fn cmp(&self, other: &NpmScriptCommand) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for NpmScriptCommand
impl PartialEq for NpmScriptCommand
§impl PartialOrd for NpmScriptCommand
impl PartialOrd for NpmScriptCommand
impl Eq for NpmScriptCommand
impl StructuralPartialEq for NpmScriptCommand
Auto Trait Implementations§
impl Freeze for NpmScriptCommand
impl RefUnwindSafe for NpmScriptCommand
impl Send for NpmScriptCommand
impl Sync for NpmScriptCommand
impl Unpin for NpmScriptCommand
impl UnsafeUnpin for NpmScriptCommand
impl UnwindSafe for NpmScriptCommand
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