pub struct StaticManifestInterpreter<'a, M: ReadableManifest + ?Sized> { /* private fields */ }
Expand description
This is a manifest interpreter which can be used to easily perform more complex validations on a manifest, and supports an optional visitor plugin mechanism.
This forms a next-generation validation ahead of the BasicManifestValidator
.
Implementations§
Source§impl<'a, M: ReadableManifest + ?Sized> StaticManifestInterpreter<'a, M>
impl<'a, M: ReadableManifest + ?Sized> StaticManifestInterpreter<'a, M>
pub fn new(validation_ruleset: ValidationRuleset, manifest: &'a M) -> Self
pub fn validate(self) -> Result<(), ManifestValidationError>
pub fn validate_and_apply_visitor<V: ManifestInterpretationVisitor>( self, visitor: &mut V, ) -> Result<(), V::Output>
Auto Trait Implementations§
impl<'a, M> Freeze for StaticManifestInterpreter<'a, M>where
M: ?Sized,
impl<'a, M> RefUnwindSafe for StaticManifestInterpreter<'a, M>where
M: RefUnwindSafe + ?Sized,
impl<'a, M> Send for StaticManifestInterpreter<'a, M>
impl<'a, M> Sync for StaticManifestInterpreter<'a, M>
impl<'a, M> Unpin for StaticManifestInterpreter<'a, M>where
M: ?Sized,
impl<'a, M> UnwindSafe for StaticManifestInterpreter<'a, M>where
M: RefUnwindSafe + ?Sized,
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