pub struct TableName(/* private fields */);Expand description
The name of a table or table alias.
Used in FROM, JOIN, INSERT INTO, UPDATE, and DELETE clauses.
Implementations§
Source§impl TableName
impl TableName
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new TableName from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<TableNameRef>
pub fn into_boxed_ref(self) -> Box<TableNameRef>
Converts this TableName into a Box<TableNameRef>
This will drop any excess capacity.
Methods from Deref<Target = TableNameRef>§
Trait Implementations§
Source§impl AsRef<TableNameRef> for TableName
impl AsRef<TableNameRef> for TableName
Source§fn as_ref(&self) -> &TableNameRef
fn as_ref(&self) -> &TableNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<TableNameRef> for TableName
impl Borrow<TableNameRef> for TableName
Source§fn borrow(&self) -> &TableNameRef
fn borrow(&self) -> &TableNameRef
Immutably borrows from an owned value. Read more
Source§impl From<&TableNameRef> for TableName
impl From<&TableNameRef> for TableName
Source§fn from(s: &TableNameRef) -> Self
fn from(s: &TableNameRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<TableNameRef>> for TableName
impl From<Box<TableNameRef>> for TableName
Source§fn from(r: Box<TableNameRef>) -> Self
fn from(r: Box<TableNameRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, TableNameRef>> for TableName
impl<'a> From<Cow<'a, TableNameRef>> for TableName
Source§fn from(r: Cow<'a, TableNameRef>) -> Self
fn from(r: Cow<'a, TableNameRef>) -> Self
Converts to this type from the input type.
Source§impl Ord for TableName
impl Ord for TableName
1.21.0 (const: unstable) · 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 PartialEq<&TableNameRef> for TableName
impl PartialEq<&TableNameRef> for TableName
Source§fn eq(&self, other: &&TableNameRef) -> bool
fn eq(&self, other: &&TableNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<TableName> for &TableNameRef
impl PartialEq<TableName> for &TableNameRef
Source§impl PartialEq<TableName> for TableNameRef
impl PartialEq<TableName> for TableNameRef
Source§impl PartialEq<TableNameRef> for TableName
impl PartialEq<TableNameRef> for TableName
Source§fn eq(&self, other: &TableNameRef) -> bool
fn eq(&self, other: &TableNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TableName
impl PartialOrd for TableName
impl Eq for TableName
impl StructuralPartialEq for TableName
Auto Trait Implementations§
impl Freeze for TableName
impl RefUnwindSafe for TableName
impl Send for TableName
impl Sync for TableName
impl Unpin for TableName
impl UnsafeUnpin for TableName
impl UnwindSafe for TableName
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.