pub enum TryCastMode {
Supported,
JustUseCast,
SafeCast,
SupportedOnStringsOtherwiseJustCast,
}Variants§
Supported
TRY_CAST is supported
JustUseCast
Regular CAST is the best we can do
SafeCast
Use SAFE_CAST
SupportedOnStringsOtherwiseJustCast
TRY_CAST is supported when the first argument is a string type Otherwise fall back to regular CAST
Trait Implementations§
Source§impl Clone for TryCastMode
impl Clone for TryCastMode
Source§fn clone(&self) -> TryCastMode
fn clone(&self) -> TryCastMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TryCastMode
impl RefUnwindSafe for TryCastMode
impl Send for TryCastMode
impl Sync for TryCastMode
impl Unpin for TryCastMode
impl UnwindSafe for TryCastMode
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