Struct witnext::ModuleValidation [−][src]
Implementations
impl<'a> ModuleValidation<'a>
[src]
pub fn new(text: &'a str, path: &'a Path) -> Self
[src]
pub fn into_module(self) -> Module
[src]
pub fn location(&self, span: Span) -> Location
[src]
pub fn validate_use(
&mut self,
use_: UseSyntax<'_>,
module: &Module
) -> Result<(), ValidationError>
[src]
&mut self,
use_: UseSyntax<'_>,
module: &Module
) -> Result<(), ValidationError>
pub fn validate_decl(
&mut self,
decl: &DeclSyntax<'_>,
comments: &CommentSyntax<'_>
) -> Result<(), ValidationError>
[src]
&mut self,
decl: &DeclSyntax<'_>,
comments: &CommentSyntax<'_>
) -> Result<(), ValidationError>
pub fn validate_function(
&mut self,
syntax: &FunctionSyntax<'_>,
comments: &CommentSyntax<'_>
) -> Result<(), ValidationError>
[src]
&mut self,
syntax: &FunctionSyntax<'_>,
comments: &CommentSyntax<'_>
) -> Result<(), ValidationError>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ModuleValidation<'a>
impl<'a> !Send for ModuleValidation<'a>
impl<'a> !Sync for ModuleValidation<'a>
impl<'a> Unpin for ModuleValidation<'a>
impl<'a> !UnwindSafe for ModuleValidation<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,