pub struct PgType(/* private fields */);Expand description
A PostgreSQL type name for casts.
Used in type cast expressions like $1::text[] or value::integer.
Implementations§
Source§impl PgType
impl PgType
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new PgType from a static reference
Sourcepub fn into_boxed_ref(self) -> Box<PgTypeRef>
pub fn into_boxed_ref(self) -> Box<PgTypeRef>
Converts this PgType into a Box<PgTypeRef>
This will drop any excess capacity.
Trait Implementations§
impl Eq for PgType
Source§impl Ord for PgType
impl Ord for PgType
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<&PgTypeRef> for PgType
impl PartialEq<&PgTypeRef> for PgType
Source§impl PartialOrd for PgType
impl PartialOrd for PgType
impl StructuralPartialEq for PgType
Auto Trait Implementations§
impl Freeze for PgType
impl RefUnwindSafe for PgType
impl Send for PgType
impl Sync for PgType
impl Unpin for PgType
impl UnsafeUnpin for PgType
impl UnwindSafe for PgType
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.