#[non_exhaustive]pub enum Overflow {
Constrain = 0,
Reject = 1,
}Expand description
Overflow handling mode for Temporal assignment operations.
Used by from() and with() methods on date/time types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
impl Copy for Overflow
impl Eq for Overflow
Source§impl FromWasmAbi for Overflow
impl FromWasmAbi for Overflow
Source§impl IntoWasmAbi for Overflow
impl IntoWasmAbi for Overflow
Source§impl NullableFromWasmAbi for Overflow
impl NullableFromWasmAbi for Overflow
Source§impl NullableIntoWasmAbi for Overflow
impl NullableIntoWasmAbi for Overflow
Source§impl OptionFromWasmAbi for Overflow
impl OptionFromWasmAbi for Overflow
Source§impl OptionIntoWasmAbi for Overflow
impl OptionIntoWasmAbi for Overflow
impl StructuralPartialEq for Overflow
Source§impl TryFromJsValue for Overflow
impl TryFromJsValue for Overflow
Source§impl VectorFromWasmAbi for Overflow
impl VectorFromWasmAbi for Overflow
Source§impl VectorIntoWasmAbi for Overflow
impl VectorIntoWasmAbi for Overflow
Source§impl VectorRefIntoWasmAbi for Overflow
impl VectorRefIntoWasmAbi for Overflow
fn slice_into_abi(slice: &[Self]) -> WasmSlice
impl VectorRefIntoWasmAbiSealed for Overflow
Auto Trait Implementations§
impl Forget for Overflow
impl Freeze for Overflow
impl Move for Overflow
impl RefUnwindSafe for Overflow
impl Send for Overflow
impl Sync for Overflow
impl Unpin for Overflow
impl UnsafeUnpin for Overflow
impl UnwindSafe for Overflow
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<T> MaybeFromWasmAbi for Twhere
T: OptionFromWasmAbi,
impl<T> MaybeFromWasmAbi for Twhere
T: OptionFromWasmAbi,
Source§type MaybeAbi = <T as FromWasmAbi>::Abi
type MaybeAbi = <T as FromWasmAbi>::Abi
The ABI of
Option<Self>.Source§unsafe fn from_maybe_abi(js: <T as FromWasmAbi>::Abi) -> T
unsafe fn from_maybe_abi(js: <T as FromWasmAbi>::Abi) -> T
unsafe fn try_from_maybe_abi( js: <T as FromWasmAbi>::Abi, ) -> Result<T, &'static str>
Source§impl<T> MaybeIntoWasmAbi for Twhere
T: OptionIntoWasmAbi,
impl<T> MaybeIntoWasmAbi for Twhere
T: OptionIntoWasmAbi,
Source§type MaybeAbi = <T as IntoWasmAbi>::Abi
type MaybeAbi = <T as IntoWasmAbi>::Abi
The ABI of
Option<Self>.Source§fn into_maybe_abi(self) -> <T as IntoWasmAbi>::Abi
fn into_maybe_abi(self) -> <T as IntoWasmAbi>::Abi
Converts a value into the
Option<Self> ABI.Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.