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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more