Struct witnext::ModuleValidation[][src]

pub struct ModuleValidation<'a> { /* fields omitted */ }

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]

pub fn validate_decl(
    &mut self,
    decl: &DeclSyntax<'_>,
    comments: &CommentSyntax<'_>
) -> Result<(), ValidationError>
[src]

pub fn validate_function(
    &mut self,
    syntax: &FunctionSyntax<'_>,
    comments: &CommentSyntax<'_>
) -> Result<(), ValidationError>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.