pub struct ColumnNameRef(/* private fields */);Expand description
The name of a column or column alias.
Used in SELECT, INSERT, UPDATE SET, and RETURNING clauses.
Implementations§
Source§impl ColumnNameRef
impl ColumnNameRef
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 ColumnNameRef
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 ColumnNameRef
Sourcepub fn into_owned(self: Box<ColumnNameRef>) -> ColumnName
pub fn into_owned(self: Box<ColumnNameRef>) -> ColumnName
Converts a Box<ColumnNameRef> into a ColumnName without copying or allocating
Trait Implementations§
Source§impl AsRef<ColumnNameRef> for ColumnName
impl AsRef<ColumnNameRef> for ColumnName
Source§fn as_ref(&self) -> &ColumnNameRef
fn as_ref(&self) -> &ColumnNameRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for ColumnNameRef
impl AsRef<str> for ColumnNameRef
Source§impl Borrow<ColumnNameRef> for ColumnName
impl Borrow<ColumnNameRef> for ColumnName
Source§fn borrow(&self) -> &ColumnNameRef
fn borrow(&self) -> &ColumnNameRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for ColumnNameRef
impl Borrow<str> for ColumnNameRef
Source§impl Debug for ColumnNameRef
impl Debug for ColumnNameRef
Source§impl Display for ColumnNameRef
impl Display for ColumnNameRef
Source§impl From<&ColumnNameRef> for Arc<ColumnNameRef>
impl From<&ColumnNameRef> for Arc<ColumnNameRef>
Source§fn from(r: &ColumnNameRef) -> Self
fn from(r: &ColumnNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&ColumnNameRef> for ColumnName
impl From<&ColumnNameRef> for ColumnName
Source§fn from(s: &ColumnNameRef) -> Self
fn from(s: &ColumnNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ColumnNameRef> for Cow<'a, ColumnNameRef>
impl<'a> From<&'a ColumnNameRef> for Cow<'a, ColumnNameRef>
Source§fn from(r: &'a ColumnNameRef) -> Self
fn from(r: &'a ColumnNameRef) -> Self
Converts to this type from the input type.
Source§impl From<&ColumnNameRef> for Rc<ColumnNameRef>
impl From<&ColumnNameRef> for Rc<ColumnNameRef>
Source§fn from(r: &ColumnNameRef) -> Self
fn from(r: &ColumnNameRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, ColumnNameRef>> for &'a ColumnNameRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ColumnNameRef>> for &'a ColumnNameRef
Source§fn from(r: &'a Cow<'b, ColumnNameRef>) -> &'a ColumnNameRef
fn from(r: &'a Cow<'b, ColumnNameRef>) -> &'a ColumnNameRef
Converts to this type from the input type.
Source§impl<'a> From<&'a str> for &'a ColumnNameRef
impl<'a> From<&'a str> for &'a ColumnNameRef
Source§fn from(s: &'a str) -> &'a ColumnNameRef
fn from(s: &'a str) -> &'a ColumnNameRef
Converts to this type from the input type.
Source§impl From<ColumnName> for Box<ColumnNameRef>
impl From<ColumnName> for Box<ColumnNameRef>
Source§fn from(r: ColumnName) -> Self
fn from(r: ColumnName) -> Self
Converts to this type from the input type.
Source§impl Hash for ColumnNameRef
impl Hash for ColumnNameRef
Source§impl Ord for ColumnNameRef
impl Ord for ColumnNameRef
Source§impl PartialEq<&ColumnNameRef> for ColumnName
impl PartialEq<&ColumnNameRef> for ColumnName
Source§fn eq(&self, other: &&ColumnNameRef) -> bool
fn eq(&self, other: &&ColumnNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ColumnName> for &ColumnNameRef
impl PartialEq<ColumnName> for &ColumnNameRef
Source§fn eq(&self, other: &ColumnName) -> bool
fn eq(&self, other: &ColumnName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ColumnName> for ColumnNameRef
impl PartialEq<ColumnName> for ColumnNameRef
Source§fn eq(&self, other: &ColumnName) -> bool
fn eq(&self, other: &ColumnName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<ColumnNameRef> for ColumnName
impl PartialEq<ColumnNameRef> for ColumnName
Source§fn eq(&self, other: &ColumnNameRef) -> bool
fn eq(&self, other: &ColumnNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq for ColumnNameRef
impl PartialEq for ColumnNameRef
Source§fn eq(&self, other: &ColumnNameRef) -> bool
fn eq(&self, other: &ColumnNameRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ColumnNameRef
impl PartialOrd for ColumnNameRef
Source§impl ToOwned for ColumnNameRef
impl ToOwned for ColumnNameRef
Source§type Owned = ColumnName
type Owned = ColumnName
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for ColumnNameRef
impl StructuralPartialEq for ColumnNameRef
Auto Trait Implementations§
impl Freeze for ColumnNameRef
impl RefUnwindSafe for ColumnNameRef
impl Send for ColumnNameRef
impl !Sized for ColumnNameRef
impl Sync for ColumnNameRef
impl Unpin for ColumnNameRef
impl UnsafeUnpin for ColumnNameRef
impl UnwindSafe for ColumnNameRef
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.