pub struct CastOptions {
pub safe: bool,
}
Expand description
CastOptions provides a way to override the default cast behaviors
Fields
safe: bool
how to handle cast failures, either return NULL (safe=true) or return ERR (safe=false)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CastOptions
impl Send for CastOptions
impl Sync for CastOptions
impl Unpin for CastOptions
impl UnwindSafe for CastOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more