[−][src]Enum nu_errors::ArgumentError
ArgumentError describes various ways that the parser could fail because of unexpected arguments. Nu commands are like a combination of functions and macros, and these errors correspond to problems that could be identified during expansion based on the syntactic signature of a command.
Variants
MissingMandatoryFlag(String)The command specified a mandatory flag, but it was missing.
MissingMandatoryPositional(String)The command specified a mandatory positional argument, but it was missing.
MissingValueForName(String)A flag was found, and it should have been followed by a value, but no value was found
An argument was found, but the command does not recognize it
An flag was found, but the command does not recognize it
A sequence of characters was found that was not syntactically valid (but would have been valid if the command was an external command)
Trait Implementations
impl Clone for ArgumentError[src]
pub fn clone(&self) -> ArgumentError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ArgumentError[src]
impl<'de> Deserialize<'de> for ArgumentError[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for ArgumentError[src]
impl Hash for ArgumentError[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for ArgumentError[src]
pub fn cmp(&self, other: &ArgumentError) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<ArgumentError> for ArgumentError[src]
pub fn eq(&self, other: &ArgumentError) -> bool[src]
pub fn ne(&self, other: &ArgumentError) -> bool[src]
impl PartialOrd<ArgumentError> for ArgumentError[src]
pub fn partial_cmp(&self, other: &ArgumentError) -> Option<Ordering>[src]
pub fn lt(&self, other: &ArgumentError) -> bool[src]
pub fn le(&self, other: &ArgumentError) -> bool[src]
pub fn gt(&self, other: &ArgumentError) -> bool[src]
pub fn ge(&self, other: &ArgumentError) -> bool[src]
impl PrettyDebug for ArgumentError[src]
pub fn pretty(&self) -> DebugDocBuilder[src]
pub fn to_doc(&self) -> DebugDoc[src]
pub fn pretty_doc(
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>[src]
&self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
pub fn pretty_builder(
&self
) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>[src]
&self
) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>
pub fn display(&self) -> String[src]
pub fn plain_string(&self, width: usize) -> String[src]
pub fn colored_string(&self, width: usize) -> String[src]
impl Serialize for ArgumentError[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for ArgumentError[src]
impl StructuralPartialEq for ArgumentError[src]
Auto Trait Implementations
impl RefUnwindSafe for ArgumentError[src]
impl Send for ArgumentError[src]
impl Sync for ArgumentError[src]
impl Unpin for ArgumentError[src]
impl UnwindSafe for ArgumentError[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> PrettyDebugWithSource for T where
T: PrettyDebug, [src]
T: PrettyDebug,
pub fn pretty_debug(&self, _source: &str) -> DebugDocBuilder[src]
pub fn refined_pretty_debug(
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder[src]
&self,
_refine: PrettyDebugRefineKind,
source: &str
) -> DebugDocBuilder
pub fn debug(&self, source: impl Into<Text>) -> String where
Self: Clone, [src]
Self: Clone,
pub fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self>[src]
impl<T> SpannedItem for T[src]
pub fn spanned(self, span: impl Into<Span>) -> Spanned<Self>[src]
pub fn spanned_unknown(self) -> Spanned<Self>[src]
impl<T> TaggedItem for T[src]
pub fn tagged(self, tag: impl Into<Tag>) -> Tagged<Self>[src]
pub fn tagged_unknown(self) -> Tagged<Self>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,