pub struct AnnotationValidator;Implementations§
Source§impl AnnotationValidator
impl AnnotationValidator
Sourcepub fn validate(
&self,
annotations: &TranspilationAnnotations,
) -> Result<(), Vec<String>>
pub fn validate( &self, annotations: &TranspilationAnnotations, ) -> Result<(), Vec<String>>
Validates the consistency of annotation settings.
§Errors
Returns a vector of error messages if any validation rules are violated.
pub fn suggest_improvements( &self, annotations: &TranspilationAnnotations, ) -> Vec<String>
Trait Implementations§
Source§impl Clone for AnnotationValidator
impl Clone for AnnotationValidator
Source§fn clone(&self) -> AnnotationValidator
fn clone(&self) -> AnnotationValidator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationValidator
impl Debug for AnnotationValidator
Source§impl Default for AnnotationValidator
impl Default for AnnotationValidator
Source§fn default() -> AnnotationValidator
fn default() -> AnnotationValidator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnnotationValidator
impl RefUnwindSafe for AnnotationValidator
impl Send for AnnotationValidator
impl Sync for AnnotationValidator
impl Unpin for AnnotationValidator
impl UnwindSafe for AnnotationValidator
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