pub enum CastMode {
Normal,
Try,
}Expand description
Whether the cast is called as a regular CAST or a TRY_CAST.
In Try mode, conversion failures should write NULL for
the failed row and call CastFunctionInfo::set_row_error rather than
aborting the whole query.
Variants§
Normal
Regular CAST — any failure aborts the query.
Try
TRY_CAST — failures produce NULL; use per-row error reporting.
Trait Implementations§
impl Copy for CastMode
impl Eq for CastMode
impl StructuralPartialEq for CastMode
Auto Trait Implementations§
impl Freeze for CastMode
impl RefUnwindSafe for CastMode
impl Send for CastMode
impl Sync for CastMode
impl Unpin for CastMode
impl UnsafeUnpin for CastMode
impl UnwindSafe for CastMode
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