Enum parser_database::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> From<RelationName<'db>> for Cow<'db, str>
impl<'db> From<RelationName<'db>> for Cow<'db, str>
source§fn from(name: RelationName<'db>) -> Self
fn from(name: RelationName<'db>) -> Self
Converts to this type from the input type.
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§impl<'db> PartialEq for RelationName<'db>
impl<'db> PartialEq for RelationName<'db>
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.