pub struct Predicates(/* private fields */);
Expand description
Collection of boolean predicates.
Implementations§
Source§impl Predicates
impl Predicates
Sourcepub fn new() -> Predicates
pub fn new() -> Predicates
Create empty collection.
Sourcepub fn from<S: Display + 'static>(predicate: S) -> Predicates
pub fn from<S: Display + 'static>(predicate: S) -> Predicates
Creates collection containing given predicate.
Sourcepub fn from_all<S, I, IT>(predicates: I) -> Self
pub fn from_all<S, I, IT>(predicates: I) -> Self
Crates collection containing given predicates.
Sourcepub fn as_where<'s>(&'s self) -> PredicateStatement<'s>
pub fn as_where<'s>(&'s self) -> PredicateStatement<'s>
Gets WHERE statement with predicates.
Sourcepub fn and_extend<S, I, IT>(&mut self, predicates: I)
pub fn and_extend<S, I, IT>(&mut self, predicates: I)
Appends all predicates.
Trait Implementations§
Source§impl IntoIterator for Predicates
impl IntoIterator for Predicates
Auto Trait Implementations§
impl Freeze for Predicates
impl !RefUnwindSafe for Predicates
impl !Send for Predicates
impl !Sync for Predicates
impl Unpin for Predicates
impl !UnwindSafe for Predicates
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> 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