[−][src]Struct nu::ShellError
Methods
impl ShellError
[src]
pub fn labeled_error(
msg: impl Into<String>,
label: impl Into<String>,
span: Span
) -> ShellError
[src]
msg: impl Into<String>,
label: impl Into<String>,
span: Span
) -> ShellError
pub fn maybe_labeled_error(
msg: impl Into<String>,
label: impl Into<String>,
span: Option<Span>
) -> ShellError
[src]
msg: impl Into<String>,
label: impl Into<String>,
span: Option<Span>
) -> ShellError
pub fn string(title: impl Into<String>) -> ShellError
[src]
Trait Implementations
impl From<Error> for ShellError
[src]
fn from(input: Error) -> ShellError
[src]
impl From<VecSinkError> for ShellError
[src]
fn from(_input: VecSinkError) -> ShellError
[src]
impl From<PopenError> for ShellError
[src]
fn from(input: PopenError) -> ShellError
[src]
impl From<Error> for ShellError
[src]
fn from(input: Error) -> ShellError
[src]
impl PartialEq<ShellError> for ShellError
[src]
fn eq(&self, other: &ShellError) -> bool
[src]
fn ne(&self, other: &ShellError) -> bool
[src]
impl Clone for ShellError
[src]
fn clone(&self) -> 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]
fn partial_cmp(&self, other: &ShellError) -> Option<Ordering>
[src]
fn lt(&self, other: &ShellError) -> bool
[src]
fn le(&self, other: &ShellError) -> bool
[src]
fn gt(&self, other: &ShellError) -> bool
[src]
fn ge(&self, other: &ShellError) -> bool
[src]
impl Eq for ShellError
[src]
impl Ord for ShellError
[src]
fn cmp(&self, other: &ShellError) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.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) -> &str
1.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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ShellError
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for ShellError
impl Sync for ShellError
impl Send for ShellError
impl RefUnwindSafe for ShellError
impl UnwindSafe for ShellError
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Render for T where
T: Display,
T: Display,
fn render(self, document: Document) -> Document
fn into_fragment(self) -> Document
fn add<Right>(self, other: Right) -> Combine<Self, Right> where
Right: Render,
Right: Render,