pub struct DefaultConstraint<T>(/* private fields */);Trait Implementations§
Source§impl<S, Q, Ty, T> Constraints<S, Q, Ty> for DefaultConstraint<T>where
Q: Accept<T, S>,
impl<S, Q, Ty, T> Constraints<S, Q, Ty> for DefaultConstraint<T>where
Q: Accept<T, S>,
impl<T> CheckIfNullOnlyOnce for DefaultConstraint<T>
impl<T> IsConstraint for DefaultConstraint<T>
impl<T> NotNullOnlyOnce for DefaultConstraint<T>
Auto Trait Implementations§
impl<T> Freeze for DefaultConstraint<T>where
T: Freeze,
impl<T> RefUnwindSafe for DefaultConstraint<T>where
T: RefUnwindSafe,
impl<T> Send for DefaultConstraint<T>where
T: Send,
impl<T> Sync for DefaultConstraint<T>where
T: Sync,
impl<T> Unpin for DefaultConstraint<T>where
T: Unpin,
impl<T> UnwindSafe for DefaultConstraint<T>where
T: 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
Source§impl<T> ConstraintExtention for Twhere
T: IsConstraint,
impl<T> ConstraintExtention for Twhere
T: IsConstraint,
fn not_null(self) -> And<Self, NotNull>where
Self: NotNullOnlyOnce,
fn default<T>(self, t: T) -> And<Self, DefaultConstraint<T>>where
Self: DefaultOnlyOnce,
fn check_if_null(self) -> And<Self, CheckIfNull>where
Self: CheckIfNullOnlyOnce,
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