pub struct Validator { /* private fields */ }
Implementations§
Source§impl Validator
impl Validator
pub fn new(witx: Document, wasi_exe: bool) -> Self
pub fn parse(source: &str) -> Result<Self, WitxError>
pub fn load<P: AsRef<Path>>(source_path: P) -> Result<Self, WitxError>
pub fn wasi_exe(&mut self, check: bool)
pub fn with_wasi_exe(self, check: bool) -> Self
pub fn validate(&self, module_contents: &[u8]) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Validator
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