pub struct PgTypeRef(/* private fields */);Expand description
A PostgreSQL type name for casts.
Used in type cast expressions like $1::text[] or value::integer.
Implementations§
Source§impl PgTypeRef
impl PgTypeRef
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 PgTypeRef
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 PgTypeRef
Sourcepub fn into_owned(self: Box<PgTypeRef>) -> PgType
pub fn into_owned(self: Box<PgTypeRef>) -> PgType
Converts a Box<PgTypeRef> into a PgType without copying or allocating
Trait Implementations§
impl Eq for PgTypeRef
Source§impl PartialEq<&PgTypeRef> for PgType
impl PartialEq<&PgTypeRef> for PgType
Source§impl PartialOrd for PgTypeRef
impl PartialOrd for PgTypeRef
impl StructuralPartialEq for PgTypeRef
Auto Trait Implementations§
impl !Sized for PgTypeRef
impl Freeze for PgTypeRef
impl RefUnwindSafe for PgTypeRef
impl Send for PgTypeRef
impl Sync for PgTypeRef
impl Unpin for PgTypeRef
impl UnsafeUnpin for PgTypeRef
impl UnwindSafe for PgTypeRef
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.