pub struct Validator<'a, E: ExecutableDocument, S: SchemaDefinition, R: Rule<'a, E, S>> { /* private fields */ }

Implementations§

source§

impl<'a, E: ExecutableDocument, S: SchemaDefinition, R: Rule<'a, E, S>> Validator<'a, E, S, R>

source

pub fn validate( executable_document: &'a E, schema_definition: &'a S, cache: &'a Cache<'a, E, S> ) -> <Self as IntoIterator>::IntoIter

Trait Implementations§

source§

impl<'a, E: ExecutableDocument, S: SchemaDefinition, R: Rule<'a, E, S>> IntoIterator for Validator<'a, E, S, R>

§

type Item = <R as Rule<'a, E, S>>::Error

The type of the elements being iterated over.
§

type IntoIter = <R as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

§

impl<'a, E, S, R> RefUnwindSafe for Validator<'a, E, S, R>where E: RefUnwindSafe, R: RefUnwindSafe, S: RefUnwindSafe,

§

impl<'a, E, S, R> Send for Validator<'a, E, S, R>where E: Sync, R: Send, S: Sync,

§

impl<'a, E, S, R> Sync for Validator<'a, E, S, R>where E: Sync, R: Sync, S: Sync,

§

impl<'a, E, S, R> Unpin for Validator<'a, E, S, R>where R: Unpin,

§

impl<'a, E, S, R> UnwindSafe for Validator<'a, E, S, R>where E: RefUnwindSafe, R: UnwindSafe, S: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.