pub struct Uninhabitable {
pub ty: String,
pub why: &'static str,
}Expand description
A type the generator will not invent a value for, and why.
Fields§
§ty: String§why: &'static strTrait Implementations§
Source§impl Clone for Uninhabitable
impl Clone for Uninhabitable
Source§fn clone(&self) -> Uninhabitable
fn clone(&self) -> Uninhabitable
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 Uninhabitable
impl Debug for Uninhabitable
Source§impl Display for Uninhabitable
impl Display for Uninhabitable
Source§impl Error for Uninhabitable
impl Error for Uninhabitable
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 Uninhabitable
impl PartialEq for Uninhabitable
impl Eq for Uninhabitable
impl StructuralPartialEq for Uninhabitable
Auto Trait Implementations§
impl Freeze for Uninhabitable
impl RefUnwindSafe for Uninhabitable
impl Send for Uninhabitable
impl Sync for Uninhabitable
impl Unpin for Uninhabitable
impl UnwindSafe for Uninhabitable
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