pub enum CommonTypeContext {
Union,
Intersect,
Except,
Values,
Case,
Coalesce,
Array,
Greatest,
Least,
In,
JoinUsing,
Cycle,
}Expand description
The construct selecting a common type, as select_common_type and coerce_to_common_type name it in their diagnostics.
Variants§
Implementations§
Source§impl CommonTypeContext
impl CommonTypeContext
pub const fn label(self) -> &'static str
Sourcepub const fn coercion_label(self) -> &'static str
pub const fn coercion_label(self) -> &'static str
The name coerce_to_common_type reports: transformCaseExpr coerces the results in a CASE/WHEN context.
pub const fn set_operation(kind: SetOpKind) -> Self
Trait Implementations§
Source§impl Clone for CommonTypeContext
impl Clone for CommonTypeContext
impl Copy for CommonTypeContext
Source§impl Debug for CommonTypeContext
impl Debug for CommonTypeContext
impl Eq for CommonTypeContext
Source§impl PartialEq for CommonTypeContext
impl PartialEq for CommonTypeContext
impl StructuralPartialEq for CommonTypeContext
Auto Trait Implementations§
impl Freeze for CommonTypeContext
impl RefUnwindSafe for CommonTypeContext
impl Send for CommonTypeContext
impl Sync for CommonTypeContext
impl Unpin for CommonTypeContext
impl UnsafeUnpin for CommonTypeContext
impl UnwindSafe for CommonTypeContext
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more