pub struct InvalidValue<'t> {
pub name: &'t str,
pub value: String,
pub reason: String,
}Expand description
Why a value would not convert into the type its field holds.
Separate from Error so that the enum stays small: this is reached through a Box.
Fields§
§name: &'t strThe flag or argument’s name, as the spec calls it.
value: StringThe text that would not convert.
reason: StringWhat the type’s own conversion complained about.
Trait Implementations§
Source§impl<'t> Clone for InvalidValue<'t>
impl<'t> Clone for InvalidValue<'t>
Source§fn clone(&self) -> InvalidValue<'t>
fn clone(&self) -> InvalidValue<'t>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'t> Debug for InvalidValue<'t>
impl<'t> Debug for InvalidValue<'t>
impl<'t> Eq for InvalidValue<'t>
Source§impl<'t> PartialEq for InvalidValue<'t>
impl<'t> PartialEq for InvalidValue<'t>
impl<'t> StructuralPartialEq for InvalidValue<'t>
Auto Trait Implementations§
impl<'t> Freeze for InvalidValue<'t>
impl<'t> RefUnwindSafe for InvalidValue<'t>
impl<'t> Send for InvalidValue<'t>
impl<'t> Sync for InvalidValue<'t>
impl<'t> Unpin for InvalidValue<'t>
impl<'t> UnsafeUnpin for InvalidValue<'t>
impl<'t> UnwindSafe for InvalidValue<'t>
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