pub struct EmptyError;Expand description
尝试从空集合创建非空类型时的错误
Trait Implementations§
Source§impl Clone for EmptyError
impl Clone for EmptyError
Source§fn clone(&self) -> EmptyError
fn clone(&self) -> EmptyError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmptyError
impl Debug for EmptyError
Source§impl Display for EmptyError
impl Display for EmptyError
Source§impl Error for EmptyError
impl Error for EmptyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for EmptyError
impl PartialEq for EmptyError
impl Copy for EmptyError
impl Eq for EmptyError
impl StructuralPartialEq for EmptyError
Auto Trait Implementations§
impl Freeze for EmptyError
impl RefUnwindSafe for EmptyError
impl Send for EmptyError
impl Sync for EmptyError
impl Unpin for EmptyError
impl UnwindSafe for EmptyError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more