Struct ockam_core::lib::fmt::Error 1.0.0[−][src]
pub struct Error;
Expand description
The error type which is returned from formatting a message into a stream.
This type does not support transmission of an error other than that an error occurred. Any extra information must be arranged to be transmitted through some other means.
An important thing to remember is that the type fmt::Error should not be
confused with std::io::Error or std::error::Error, which you may also
have in scope.
Examples
use std::fmt::{self, write}; let mut output = String::new(); if let Err(fmt::Error) = write(&mut output, format_args!("Hello {}!", "world")) { panic!("An error occurred"); }
Trait Implementations
impl Error for Error1.11.0[src]
impl Error for Error1.11.0[src]pub fn description(&self) -> &str[src]
pub fn description(&self) -> &str[src]use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
impl Ord for Error[src]
impl Ord for Error[src]impl PartialOrd<Error> for Error[src]
impl PartialOrd<Error> for Error[src]pub fn partial_cmp(&self, other: &Error) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &Error) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool[src]
#[must_use]fn le(&self, other: &Rhs) -> bool[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for Error[src]
impl Eq for Error[src]
impl StructuralEq for Error[src]
impl StructuralPartialEq for Error[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,