pub enum PauliGraphError {
InvalidOp {
op: Op,
message: String,
},
InvalidInputJson(String),
}Expand description
Error type for PauliGraph operations and input validation.
Variants§
InvalidOp
Invalid operation within a PauliGraph.
InvalidInputJson(String)
Invalid input JSON during deserialization.
Trait Implementations§
Source§impl Debug for PauliGraphError
impl Debug for PauliGraphError
Source§impl Display for PauliGraphError
impl Display for PauliGraphError
Source§impl Error for PauliGraphError
impl Error for PauliGraphError
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()
Auto Trait Implementations§
impl Freeze for PauliGraphError
impl RefUnwindSafe for PauliGraphError
impl Send for PauliGraphError
impl Sync for PauliGraphError
impl Unpin for PauliGraphError
impl UnsafeUnpin for PauliGraphError
impl UnwindSafe for PauliGraphError
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