pub struct Validator { /* private fields */ }
Implementations§
source§impl Validator
impl Validator
pub fn validate_literal(&self, literal: Literal) -> Result<(), LiteralError>
source§impl Validator
impl Validator
sourcepub fn new(flags: ValidationFlags, capabilities: Capabilities) -> Validator
pub fn new(flags: ValidationFlags, capabilities: Capabilities) -> Validator
Construct a new validator instance.
sourcepub fn validate(
&mut self,
module: &Module
) -> Result<ModuleInfo, WithSpan<ValidationError>>
pub fn validate( &mut self, module: &Module ) -> Result<ModuleInfo, WithSpan<ValidationError>>
Check the given module to be valid.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnwindSafe for Validator
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