pub struct Semantics { /* private fields */ }Expand description
The meaning-changing session choices consumed while a query is bound.
Implementations§
Source§impl Semantics
impl Semantics
Sourcepub fn disable_timestamptz_casts(self) -> bool
pub fn disable_timestamptz_casts(self) -> bool
Whether casts from local timestamps to zoned timestamps are refused.
Sourcepub fn ieee_floating_point_ops(self) -> bool
pub fn ieee_floating_point_ops(self) -> bool
Whether floating division and remainder use IEEE answers for zero divisors.
Sourcepub fn default_descending(self) -> bool
pub fn default_descending(self) -> bool
Whether an order item with no direction is descending.
Sourcepub fn nulls_first(self, descending: bool) -> bool
pub fn nulls_first(self, descending: bool) -> bool
Whether nulls precede values for an unstated placement in this direction.
Sourcepub fn integer_division(self) -> bool
pub fn integer_division(self) -> bool
Whether / is bound as the integer division operator.
Sourcepub fn null_on_division_by_zero(self) -> bool
pub fn null_on_division_by_zero(self) -> bool
Whether a division that would raise on a zero divisor yields null instead.
Sourcepub fn order_by_non_integer_literal(self) -> bool
pub fn order_by_non_integer_literal(self) -> bool
Whether a constant non-integer expression is accepted as a sort key.
Sourcepub fn regex_match_full(self) -> bool
pub fn regex_match_full(self) -> bool
Whether regex match operators require the entire string to match.
Sourcepub fn show_behavior(self) -> ShowBehavior
pub fn show_behavior(self) -> ShowBehavior
How a bare name following SHOW is resolved.
Trait Implementations§
impl Copy for Semantics
impl Eq for Semantics
impl StructuralPartialEq for Semantics
Auto Trait Implementations§
impl Freeze for Semantics
impl RefUnwindSafe for Semantics
impl Send for Semantics
impl Sync for Semantics
impl Unpin for Semantics
impl UnsafeUnpin for Semantics
impl UnwindSafe for Semantics
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