pub enum Context {
Implicit,
Assignment,
Plpgsql,
Explicit,
}Expand description
CoercionContext: where a cast happens. A cast is allowed in its own context and in each later one.
Variants§
Implicit
An expression, such as the argument of a function.
Assignment
The value of INSERT and UPDATE.
Plpgsql
COERCION_PLPGSQL: the value of an assignment of PL/pgSQL. When no other cast exists, the output function of the source and the input function of the target make the cast.
Explicit
CAST(x AS type) and x::type.
Trait Implementations§
impl Copy for Context
impl Eq for Context
Source§impl Ord for Context
impl Ord for Context
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Context
impl PartialOrd for Context
impl StructuralPartialEq for Context
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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