pub struct FormatValidator { /* private fields */ }Expand description
Validator for proof formats.
Implementations§
Source§impl FormatValidator
impl FormatValidator
Sourcepub fn allow_empty(self, allow: bool) -> Self
pub fn allow_empty(self, allow: bool) -> Self
Allow empty proofs.
Sourcepub fn check_cycles(self, check: bool) -> Self
pub fn check_cycles(self, check: bool) -> Self
Enable/disable cycle checking.
Sourcepub fn validate_syntax(self, validate: bool) -> Self
pub fn validate_syntax(self, validate: bool) -> Self
Enable/disable syntax validation.
Sourcepub fn validate_proof(&self, proof: &Proof) -> ValidationResult<()>
pub fn validate_proof(&self, proof: &Proof) -> ValidationResult<()>
Validate a generic proof.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormatValidator
impl RefUnwindSafe for FormatValidator
impl Send for FormatValidator
impl Sync for FormatValidator
impl Unpin for FormatValidator
impl UnsafeUnpin for FormatValidator
impl UnwindSafe for FormatValidator
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