Enum query_structure::walkers::RelationName
source · pub enum RelationName<'db> {
Explicit(&'db str),
Generated(String),
}
Expand description
The relation name.
Variants§
Explicit(&'db str)
A relation name specified in the AST.
Generated(String)
An inferred relation name.
Trait Implementations§
source§impl<'db> AsRef<str> for RelationName<'db>
impl<'db> AsRef<str> for RelationName<'db>
source§impl<'db> Clone for RelationName<'db>
impl<'db> Clone for RelationName<'db>
source§fn clone(&self) -> RelationName<'db>
fn clone(&self) -> RelationName<'db>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'db> Debug for RelationName<'db>
impl<'db> Debug for RelationName<'db>
source§impl<'db> Display for RelationName<'db>
impl<'db> Display for RelationName<'db>
source§impl<'db> Hash for RelationName<'db>
impl<'db> Hash for RelationName<'db>
source§impl<'db> Ord for RelationName<'db>
impl<'db> Ord for RelationName<'db>
source§fn cmp(&self, other: &RelationName<'db>) -> Ordering
fn cmp(&self, other: &RelationName<'db>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'db> PartialEq for RelationName<'db>
impl<'db> PartialEq for RelationName<'db>
source§fn eq(&self, other: &RelationName<'db>) -> bool
fn eq(&self, other: &RelationName<'db>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'db> PartialOrd for RelationName<'db>
impl<'db> PartialOrd for RelationName<'db>
source§fn partial_cmp(&self, other: &RelationName<'db>) -> Option<Ordering>
fn partial_cmp(&self, other: &RelationName<'db>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'db> Eq for RelationName<'db>
Auto Trait Implementations§
impl<'db> RefUnwindSafe for RelationName<'db>
impl<'db> Send for RelationName<'db>
impl<'db> Sync for RelationName<'db>
impl<'db> Unpin for RelationName<'db>
impl<'db> UnwindSafe for RelationName<'db>
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.