pub enum MaybeValidator<V> {
Active(V),
Disabled,
}Variants§
Trait Implementations§
Source§impl<V: Clone> Clone for MaybeValidator<V>
impl<V: Clone> Clone for MaybeValidator<V>
Source§fn clone(&self) -> MaybeValidator<V>
fn clone(&self) -> MaybeValidator<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: Debug> Debug for MaybeValidator<V>
impl<V: Debug> Debug for MaybeValidator<V>
Source§impl<const N: usize, F: FKScalar, R: ValidatorRet, V> Validator<N, R, F> for MaybeValidator<V>where
V: Validator<N, R, F>,
impl<const N: usize, F: FKScalar, R: ValidatorRet, V> Validator<N, R, F> for MaybeValidator<V>where
V: Validator<N, R, F>,
type Context<'ctx> = <V as Validator<N, R, F>>::Context<'ctx>
fn validate<'ctx, E: Into<DekeError>, Q: SRobotQLike<N, E, F>>( &self, q: Q, ctx: &Self::Context<'ctx>, ) -> DekeResult<R>
fn validate_motion<'ctx>( &self, qs: &[SRobotQ<N, F>], ctx: &Self::Context<'ctx>, ) -> DekeResult<R>
const VALIDATE_MOTION_IS_CONTINUOUS: bool = false
Auto Trait Implementations§
impl<V> Freeze for MaybeValidator<V>where
V: Freeze,
impl<V> RefUnwindSafe for MaybeValidator<V>where
V: RefUnwindSafe,
impl<V> Send for MaybeValidator<V>where
V: Send,
impl<V> Sync for MaybeValidator<V>where
V: Sync,
impl<V> Unpin for MaybeValidator<V>where
V: Unpin,
impl<V> UnsafeUnpin for MaybeValidator<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for MaybeValidator<V>where
V: UnwindSafe,
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