pub enum ScalarConversionError {
QuotedValue,
ParseError(String),
}Expand description
Error type for scalar type conversions
Variants§
QuotedValue
The scalar value is quoted, indicating it’s a string type in YAML
ParseError(String)
The scalar value cannot be parsed as the target type
Trait Implementations§
Source§impl Clone for ScalarConversionError
impl Clone for ScalarConversionError
Source§fn clone(&self) -> ScalarConversionError
fn clone(&self) -> ScalarConversionError
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 ScalarConversionError
impl Debug for ScalarConversionError
Source§impl Display for ScalarConversionError
impl Display for ScalarConversionError
Source§impl Error for ScalarConversionError
impl Error for ScalarConversionError
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 ScalarConversionError
impl PartialEq for ScalarConversionError
impl Eq for ScalarConversionError
impl StructuralPartialEq for ScalarConversionError
Auto Trait Implementations§
impl Freeze for ScalarConversionError
impl RefUnwindSafe for ScalarConversionError
impl Send for ScalarConversionError
impl Sync for ScalarConversionError
impl Unpin for ScalarConversionError
impl UnsafeUnpin for ScalarConversionError
impl UnwindSafe for ScalarConversionError
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