pub struct TableNameRef(/* 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 TableNameRef
impl TableNameRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed TableNameRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed TableNameRef
Sourcepub fn into_owned(self: Box<TableNameRef>) -> TableName
pub fn into_owned(self: Box<TableNameRef>) -> TableName
Converts a Box<TableNameRef> into a TableName without copying or allocating
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 AsRef<str> for TableNameRef
impl AsRef<str> for TableNameRef
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 Borrow<str> for TableNameRef
impl Borrow<str> for TableNameRef
Source§impl Debug for TableNameRef
impl Debug for TableNameRef
Source§impl Display for TableNameRef
impl Display for TableNameRef
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, TableNameRef>> for &'a TableNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, TableNameRef>> for &'a TableNameRef
Source§fn from(r: &'a Cow<'b, TableNameRef>) -> &'a TableNameRef
fn from(r: &'a Cow<'b, TableNameRef>) -> &'a TableNameRef
Converts to this type from the input type.
Source§impl From<&TableNameRef> for Arc<TableNameRef>
impl From<&TableNameRef> for Arc<TableNameRef>
Source§fn from(r: &TableNameRef) -> Self
fn from(r: &TableNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a TableNameRef> for Cow<'a, TableNameRef>
impl<'a> From<&'a TableNameRef> for Cow<'a, TableNameRef>
Source§fn from(r: &'a TableNameRef) -> Self
fn from(r: &'a TableNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&TableNameRef> for Rc<TableNameRef>
impl From<&TableNameRef> for Rc<TableNameRef>
Source§fn from(r: &TableNameRef) -> Self
fn from(r: &TableNameRef) -> Self
Converts to this type from the input type.
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<'a> From<&'a str> for &'a TableNameRef
impl<'a> From<&'a str> for &'a TableNameRef
Source§fn from(s: &'a str) -> &'a TableNameRef
fn from(s: &'a str) -> &'a TableNameRef
Converts to this type from the input type.
Source§impl Hash for TableNameRef
impl Hash for TableNameRef
Source§impl Ord for TableNameRef
impl Ord 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 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 PartialEq for TableNameRef
impl PartialEq for TableNameRef
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 TableNameRef
impl PartialOrd for TableNameRef
Source§impl ToOwned for TableNameRef
impl ToOwned for TableNameRef
impl Eq for TableNameRef
impl StructuralPartialEq for TableNameRef
Auto Trait Implementations§
impl Freeze for TableNameRef
impl RefUnwindSafe for TableNameRef
impl Send for TableNameRef
impl !Sized for TableNameRef
impl Sync for TableNameRef
impl Unpin for TableNameRef
impl UnsafeUnpin for TableNameRef
impl UnwindSafe for TableNameRef
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<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.