Struct kimchi::snarky::errors::RealSnarkyError
source · pub struct RealSnarkyError {
pub source: SnarkyError,
pub loc: Option<String>,
pub label_stack: Option<Vec<Cow<'static, str>>>,
/* private fields */
}
Fields§
§source: SnarkyError
The actual error.
loc: Option<String>
A location string, usually a file name and line number. Location information is usually useful for:
- assert that failed (so we need to keep track of the location that created each gates)
label_stack: Option<Vec<Cow<'static, str>>>
A stack of labels, where each label represents an important function call.
Implementations§
source§impl RealSnarkyError
impl RealSnarkyError
sourcepub fn new(source: SnarkyError) -> Self
pub fn new(source: SnarkyError) -> Self
Creates a new RealSnarkyError.
sourcepub fn new_with_ctx(
source: SnarkyError,
loc: Cow<'static, str>,
label_stack: Vec<Cow<'static, str>>
) -> Self
pub fn new_with_ctx( source: SnarkyError, loc: Cow<'static, str>, label_stack: Vec<Cow<'static, str>> ) -> Self
Creates a new RealSnarkyError.
Trait Implementations§
source§impl Debug for RealSnarkyError
impl Debug for RealSnarkyError
source§impl Display for RealSnarkyError
impl Display for RealSnarkyError
source§impl Error for RealSnarkyError
impl Error for RealSnarkyError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for RealSnarkyError
impl Send for RealSnarkyError
impl Sync for RealSnarkyError
impl Unpin for RealSnarkyError
impl UnwindSafe for RealSnarkyError
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