Enum marked_yaml::LoadError
source · #[non_exhaustive]pub enum LoadError {
TopLevelMustBeMapping(Marker),
TopLevelMustBeSequence(Marker),
UnexpectedAnchor(Marker),
MappingKeyMustBeScalar(Marker),
UnexpectedTag(Marker),
ScanError(Marker, ScanError),
DuplicateKey(Box<DuplicateKeyInner>),
}
Expand description
Errors which can occur during loading of YAML
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopLevelMustBeMapping(Marker)
Something other than a mapping detected at the top level
TopLevelMustBeSequence(Marker)
Something other than a sequence detected at the top level
UnexpectedAnchor(Marker)
Unexpected definition of anchor
MappingKeyMustBeScalar(Marker)
Mapping keys must be scalars
UnexpectedTag(Marker)
An explicit tag was detected
ScanError(Marker, ScanError)
A YAML scanner error occured
DuplicateKey(Box<DuplicateKeyInner>)
A duplicate key was detected in a mapping
Trait Implementations§
source§impl Error for LoadError
impl Error for LoadError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<LoadError> for FromYamlError
impl From<LoadError> for FromYamlError
source§impl PartialEq for LoadError
impl PartialEq for LoadError
impl Eq for LoadError
impl StructuralPartialEq for LoadError
Auto Trait Implementations§
impl Freeze for LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnwindSafe for LoadError
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