pub enum OverrideLoadError {
Yaml(String),
UnsupportedVersion {
version: u32,
},
EmptySurface {
entry_index: usize,
},
EmptyReadings {
surface: String,
},
EmptyReading {
surface: String,
reading_index: usize,
},
DuplicateSurface {
surface: String,
},
}Expand description
Errors returned while loading an override dictionary.
Variants§
Yaml(String)
The YAML document could not be parsed.
UnsupportedVersion
The override file version is not supported.
EmptySurface
An override entry had an empty surface form.
EmptyReadings
An override entry had no readings.
EmptyReading
An override entry contained an empty reading.
Fields
DuplicateSurface
A surface form appeared more than once.
Trait Implementations§
Source§impl Clone for OverrideLoadError
impl Clone for OverrideLoadError
Source§fn clone(&self) -> OverrideLoadError
fn clone(&self) -> OverrideLoadError
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 OverrideLoadError
impl Debug for OverrideLoadError
Source§impl Display for OverrideLoadError
impl Display for OverrideLoadError
impl Eq for OverrideLoadError
Source§impl Error for OverrideLoadError
impl Error for OverrideLoadError
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 OverrideLoadError
impl PartialEq for OverrideLoadError
Source§fn eq(&self, other: &OverrideLoadError) -> bool
fn eq(&self, other: &OverrideLoadError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OverrideLoadError
Auto Trait Implementations§
impl Freeze for OverrideLoadError
impl RefUnwindSafe for OverrideLoadError
impl Send for OverrideLoadError
impl Sync for OverrideLoadError
impl Unpin for OverrideLoadError
impl UnsafeUnpin for OverrideLoadError
impl UnwindSafe for OverrideLoadError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.