pub struct NotSpecification<S, T> { /* private fields */ }Expand description
NOT specification - negates the inner specification
Implementations§
Source§impl<S, T> NotSpecification<S, T>
impl<S, T> NotSpecification<S, T>
pub fn new(spec: S) -> NotSpecification<S, T>
Trait Implementations§
Source§impl<S, T> Clone for NotSpecification<S, T>
impl<S, T> Clone for NotSpecification<S, T>
Source§fn clone(&self) -> NotSpecification<S, T>
fn clone(&self) -> NotSpecification<S, T>
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<S, T> Debug for NotSpecification<S, T>
impl<S, T> Debug for NotSpecification<S, T>
Source§impl<S, T> Specification<T> for NotSpecification<S, T>
impl<S, T> Specification<T> for NotSpecification<S, T>
Source§fn is_satisfied_by(
&self,
candidate: &T,
) -> Result<bool, <NotSpecification<S, T> as Specification<T>>::Error>
fn is_satisfied_by( &self, candidate: &T, ) -> Result<bool, <NotSpecification<S, T> as Specification<T>>::Error>
Check if the candidate satisfies this specification
Source§fn and<S>(self, other: S) -> AndSpecification<Self, S, T>where
Self: Sized,
S: Specification<T>,
fn and<S>(self, other: S) -> AndSpecification<Self, S, T>where
Self: Sized,
S: Specification<T>,
Combine with another specification using AND
Source§fn or<S>(self, other: S) -> OrSpecification<Self, S, T>where
Self: Sized,
S: Specification<T>,
fn or<S>(self, other: S) -> OrSpecification<Self, S, T>where
Self: Sized,
S: Specification<T>,
Combine with another specification using OR
Source§fn not(self) -> NotSpecification<Self, T>where
Self: Sized,
fn not(self) -> NotSpecification<Self, T>where
Self: Sized,
Negate this specification
Auto Trait Implementations§
impl<S, T> Freeze for NotSpecification<S, T>
impl<S, T> RefUnwindSafe for NotSpecification<S, T>
impl<S, T> Send for NotSpecification<S, T>
impl<S, T> Sync for NotSpecification<S, T>
impl<S, T> Unpin for NotSpecification<S, T>
impl<S, T> UnsafeUnpin for NotSpecification<S, T>
impl<S, T> UnwindSafe for NotSpecification<S, T>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more