pub enum UnparseError {
Unsupported(&'static str),
FmtError,
}Expand description
Errors the unparser can surface. Caller (Phase 1 mutator) maps these to “skip this mutation, return 0 to AFL”.
Variants§
Unsupported(&'static str)
AST variant the unparser explicitly refuses — typically a node only produced by a post-parse pass (TCO, resolver) that the mutator should never see. Includes a static tag describing the variant so the integration test failure names the exact gap.
FmtError
std::fmt::Write failed against the internal String
buffer. Effectively unreachable (String never fails on
Write), but ? propagation needs a variant.
Trait Implementations§
Source§impl Clone for UnparseError
impl Clone for UnparseError
Source§fn clone(&self) -> UnparseError
fn clone(&self) -> UnparseError
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 UnparseError
impl Debug for UnparseError
Source§impl Display for UnparseError
impl Display for UnparseError
Source§impl Error for UnparseError
impl Error for UnparseError
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<Error> for UnparseError
impl From<Error> for UnparseError
Source§impl PartialEq for UnparseError
impl PartialEq for UnparseError
impl StructuralPartialEq for UnparseError
Auto Trait Implementations§
impl Freeze for UnparseError
impl RefUnwindSafe for UnparseError
impl Send for UnparseError
impl Sync for UnparseError
impl Unpin for UnparseError
impl UnsafeUnpin for UnparseError
impl UnwindSafe for UnparseError
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