pub struct ParseBoolError {
pub input: String,
}Expand description
Error when parsing a boolean value from a .repo file option fails.
This occurs when a value expected to be a DNF boolean (1/0/yes/no/true/false/on/off)
contains something else entirely (e.g., "maybe").
Fields§
§input: StringThe raw input string that could not be parsed as a boolean.
Trait Implementations§
Source§impl Debug for ParseBoolError
impl Debug for ParseBoolError
Source§impl Display for ParseBoolError
impl Display for ParseBoolError
Source§impl Error for ParseBoolError
impl Error for ParseBoolError
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 From<ParseBoolError> for Error
impl From<ParseBoolError> for Error
Source§fn from(source: ParseBoolError) -> Self
fn from(source: ParseBoolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseBoolError
impl RefUnwindSafe for ParseBoolError
impl Send for ParseBoolError
impl Sync for ParseBoolError
impl Unpin for ParseBoolError
impl UnsafeUnpin for ParseBoolError
impl UnwindSafe for ParseBoolError
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