[−][src]Struct nu_errors::ParseError
A newtype for ParseErrorReason
Implementations
impl ParseError[src]
pub fn reason(&self) -> &ParseErrorReason[src]
impl ParseError[src]
pub fn unexpected_eof(expected: impl Into<String>, span: Span) -> ParseError[src]
Construct a ParseErrorReason::Eof
pub fn extra_tokens(actual: Spanned<impl Into<String>>) -> ParseError[src]
Construct a ParseErrorReason::ExtraTokens
pub fn mismatch(
expected: impl Into<String>,
actual: Spanned<impl Into<String>>
) -> ParseError[src]
expected: impl Into<String>,
actual: Spanned<impl Into<String>>
) -> ParseError
Construct a ParseErrorReason::Mismatch
pub fn internal_error(message: Spanned<impl Into<String>>) -> ParseError[src]
Construct a ParseErrorReason::InternalError
pub fn argument_error(
command: Spanned<impl Into<String>>,
kind: ArgumentError
) -> ParseError[src]
command: Spanned<impl Into<String>>,
kind: ArgumentError
) -> ParseError
Construct a ParseErrorReason::ArgumentError
Trait Implementations
impl Clone for ParseError[src]
pub fn clone(&self) -> ParseError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ParseError[src]
impl<'de> Deserialize<'de> for ParseError[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for ParseError[src]
impl From<ParseError> for ShellError[src]
Convert a ParseError into a ShellError
pub fn from(error: ParseError) -> ShellError[src]
impl Hash for ParseError[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 ParseError[src]
pub fn cmp(&self, other: &ParseError) -> 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<ParseError> for ParseError[src]
pub fn eq(&self, other: &ParseError) -> bool[src]
pub fn ne(&self, other: &ParseError) -> bool[src]
impl PartialOrd<ParseError> for ParseError[src]
pub fn partial_cmp(&self, other: &ParseError) -> Option<Ordering>[src]
pub fn lt(&self, other: &ParseError) -> bool[src]
pub fn le(&self, other: &ParseError) -> bool[src]
pub fn gt(&self, other: &ParseError) -> bool[src]
pub fn ge(&self, other: &ParseError) -> bool[src]
impl Serialize for ParseError[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for ParseError[src]
impl StructuralPartialEq for ParseError[src]
Auto Trait Implementations
impl RefUnwindSafe for ParseError[src]
impl Send for ParseError[src]
impl Sync for ParseError[src]
impl Unpin for ParseError[src]
impl UnwindSafe for ParseError[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> 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>,