pub enum KeepSourceError {
Duplicate(Vec<Spanned<String>>),
Invalid(Spanned<String>),
}Expand description
Errors returned by RDescription::keep_source.
Variants§
Duplicate(Vec<Spanned<String>>)
The KeepSource field occurs more than once.
Invalid(Spanned<String>)
The KeepSource value is not a supported logical value.
Implementations§
Source§impl KeepSourceError
impl KeepSourceError
Sourcepub fn occurrences(&self) -> &[Spanned<String>]
pub fn occurrences(&self) -> &[Spanned<String>]
Returns the values responsible for the KeepSource error.
Trait Implementations§
Source§impl Clone for KeepSourceError
impl Clone for KeepSourceError
Source§impl Debug for KeepSourceError
impl Debug for KeepSourceError
Source§impl Display for KeepSourceError
impl Display for KeepSourceError
impl Eq for KeepSourceError
Source§impl Error for KeepSourceError
impl Error for KeepSourceError
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 KeepSourceError
impl PartialEq for KeepSourceError
impl StructuralPartialEq for KeepSourceError
Auto Trait Implementations§
impl Freeze for KeepSourceError
impl RefUnwindSafe for KeepSourceError
impl Send for KeepSourceError
impl Sync for KeepSourceError
impl Unpin for KeepSourceError
impl UnsafeUnpin for KeepSourceError
impl UnwindSafe for KeepSourceError
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