pub struct RelationCol<P: 'static, T: 'static> { /* private fields */ }Expand description
A relation, as a predicate builder: what Trip::lodging() returns. The instance
accessor of the same name (trip.lodging()) reads and writes the relation; this one asks
questions about it in a query. They cannot collide: one takes self, this one does not.
Implementations§
Source§impl<P, T> RelationCol<P, T>
impl<P, T> RelationCol<P, T>
pub const fn new( field: &'static str, owner: &'static str, target: &'static str, ) -> Self
Sourcepub fn all(self, inner: Pred) -> Pred
pub fn all(self, inner: Pred) -> Pred
Every related row matches; vacuously true when there are none, as in SQL. Reach for
RelationCol::none when that is not what you meant.
Trait Implementations§
Source§impl<P, T> Clone for RelationCol<P, T>
impl<P, T> Clone for RelationCol<P, T>
impl<P, T> Copy for RelationCol<P, T>
Auto Trait Implementations§
impl<P, T> Forget for RelationCol<P, T>
impl<P, T> Freeze for RelationCol<P, T>
impl<P, T> RefUnwindSafe for RelationCol<P, T>
impl<P, T> Send for RelationCol<P, T>
impl<P, T> Sync for RelationCol<P, T>
impl<P, T> Unpin for RelationCol<P, T>
impl<P, T> UnsafeUnpin for RelationCol<P, T>
impl<P, T> UnwindSafe for RelationCol<P, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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