pub trait Validator<const N: usize, R: ValidatorRet = ()>:
Sized
+ Clone
+ Debug
+ Send
+ Sync
+ 'static {
type Context<'ctx>: ValidatorContext;
// Required methods
fn validate<'ctx, E: Into<DekeError>, A: SRobotQLike<N, E>>(
&self,
q: A,
ctx: &Self::Context<'ctx>,
) -> DekeResult<R>;
fn validate_motion<'ctx>(
&self,
qs: &[SRobotQ<N>],
ctx: &Self::Context<'ctx>,
) -> DekeResult<R>;
}Required Associated Types§
type Context<'ctx>: ValidatorContext
Required Methods§
fn validate<'ctx, E: Into<DekeError>, A: SRobotQLike<N, E>>( &self, q: A, ctx: &Self::Context<'ctx>, ) -> DekeResult<R>
fn validate_motion<'ctx>( &self, qs: &[SRobotQ<N>], ctx: &Self::Context<'ctx>, ) -> DekeResult<R>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.