pub struct NpmScriptCommand(/* private fields */);Implementations§
Source§impl NpmScriptCommand
impl NpmScriptCommand
Sourcepub 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§
Source§impl Clone for NpmScriptCommand
impl Clone for NpmScriptCommand
Source§fn clone(&self) -> NpmScriptCommand
fn clone(&self) -> NpmScriptCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NpmScriptCommand
impl Debug for NpmScriptCommand
Source§impl Display for NpmScriptCommand
impl Display for NpmScriptCommand
Source§impl Hash for NpmScriptCommand
impl Hash for NpmScriptCommand
Source§impl Ord for NpmScriptCommand
impl Ord for NpmScriptCommand
Source§fn cmp(&self, other: &NpmScriptCommand) -> Ordering
fn cmp(&self, other: &NpmScriptCommand) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for NpmScriptCommand
impl PartialEq for NpmScriptCommand
Source§fn eq(&self, other: &NpmScriptCommand) -> bool
fn eq(&self, other: &NpmScriptCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§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