pub enum ConfigHint {
Nearest(String),
Value(String),
Bounded(String, Bound),
}Expand description
What Config::hint finds to say beside an error.
Variants§
Nearest(String)
The path of the config nearest to the misspelt one.
Value(String)
The value (in TOML syntax) at the path that was refused.
Bounded(String, Bound)
The value that was refused, and the limit it broke.
Trait Implementations§
Source§impl Clone for ConfigHint
impl Clone for ConfigHint
Source§fn clone(&self) -> ConfigHint
fn clone(&self) -> ConfigHint
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 Debug for ConfigHint
impl Debug for ConfigHint
Source§impl PartialEq for ConfigHint
impl PartialEq for ConfigHint
Source§fn eq(&self, other: &ConfigHint) -> bool
fn eq(&self, other: &ConfigHint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConfigHint
Auto Trait Implementations§
impl Freeze for ConfigHint
impl RefUnwindSafe for ConfigHint
impl Send for ConfigHint
impl Sync for ConfigHint
impl Unpin for ConfigHint
impl UnsafeUnpin for ConfigHint
impl UnwindSafe for ConfigHint
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