[][src]Struct nu::ShellError

pub struct ShellError { /* fields omitted */ }

Methods

impl ShellError[src]

pub fn labeled_error(
    msg: impl Into<String>,
    label: impl Into<String>,
    span: Span
) -> ShellError
[src]

pub fn maybe_labeled_error(
    msg: impl Into<String>,
    label: impl Into<String>,
    span: Option<Span>
) -> ShellError
[src]

pub fn string(title: impl Into<String>) -> ShellError[src]

Trait Implementations

impl From<Error> for ShellError[src]

impl From<VecSinkError> for ShellError[src]

impl From<PopenError> for ShellError[src]

impl From<Error> for ShellError[src]

impl PartialEq<ShellError> for ShellError[src]

impl Clone for ShellError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<ShellError> for ShellError[src]

impl Eq for ShellError[src]

impl Ord for ShellError[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl Display for ShellError[src]

impl Debug for ShellError[src]

impl Error for ShellError[src]

fn description(&self) -> &str1.0.0[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

impl Serialize for ShellError[src]

impl<'de> Deserialize<'de> for ShellError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Render for T where
    T: Display

fn into_fragment(self) -> Document

fn add<Right>(self, other: Right) -> Combine<Self, Right> where
    Right: Render,