pub enum SExprError {
Parse(String),
Shape(String),
MissingField(String),
UnknownVariant(String),
}Expand description
Conversion errors during FromSExpr parsing.
Variants§
Parse(String)
Top-level parse failure (bad tokens, unbalanced parens, etc.).
Shape(String)
Value shape didn’t match what the destination type expected.
MissingField(String)
A named field required by the destination was missing.
UnknownVariant(String)
Unknown / unsupported variant tag.
Trait Implementations§
Source§impl Clone for SExprError
impl Clone for SExprError
Source§impl Debug for SExprError
impl Debug for SExprError
Source§impl Display for SExprError
impl Display for SExprError
impl Eq for SExprError
Source§impl Error for SExprError
impl Error for SExprError
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 From<SExprError> for NixTransformError
impl From<SExprError> for NixTransformError
Source§fn from(e: SExprError) -> Self
fn from(e: SExprError) -> Self
Converts to this type from the input type.
Source§impl From<SExprError> for RemediationError
impl From<SExprError> for RemediationError
Source§fn from(e: SExprError) -> Self
fn from(e: SExprError) -> Self
Converts to this type from the input type.
Source§impl From<SExprError> for FixtureError
impl From<SExprError> for FixtureError
Source§fn from(e: SExprError) -> Self
fn from(e: SExprError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SExprError
impl PartialEq for SExprError
impl StructuralPartialEq for SExprError
Auto Trait Implementations§
impl Freeze for SExprError
impl RefUnwindSafe for SExprError
impl Send for SExprError
impl Sync for SExprError
impl Unpin for SExprError
impl UnsafeUnpin for SExprError
impl UnwindSafe for SExprError
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.