pub enum YamlError {
Parse {
source: Box<YamlError>,
},
MultipleDocuments {
count: usize,
},
UnsupportedLayout {
path: KeyPath,
},
DuplicateKey {
path: KeyPath,
key: String,
},
}Expand description
Error returned while reading a YAML source tree.
Variants§
Parse
yaml-rt failed to parse the source.
MultipleDocuments
The source holds more than one YAML document.
UnsupportedLayout
A mapping that the merge has to enter is written in a layout the editor cannot change, such as a flow mapping with entries, explicit keys, or mixed indentation.
DuplicateKey
A block mapping holds the same key twice.
Trait Implementations§
Source§impl Error for YamlError
impl Error for YamlError
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()
Auto Trait Implementations§
impl Freeze for YamlError
impl RefUnwindSafe for YamlError
impl Send for YamlError
impl Sync for YamlError
impl Unpin for YamlError
impl UnsafeUnpin for YamlError
impl UnwindSafe for YamlError
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