Skip to main content

PropUnwrap

Trait PropUnwrap 

Source
pub trait PropUnwrap: Sized {
Show 31 methods // Required methods fn into_u8(self) -> Option<u8>; fn into_u16(self) -> Option<u16>; fn into_str(self) -> Option<ArcStr>; fn into_i32(self) -> Option<i32>; fn into_i64(self) -> Option<i64>; fn into_u32(self) -> Option<u32>; fn into_u64(self) -> Option<u64>; fn into_f32(self) -> Option<f32>; fn into_f64(self) -> Option<f64>; fn into_bool(self) -> Option<bool>; fn into_list(self) -> Option<PropArray>; fn into_map(self) -> Option<Arc<FxHashMap<ArcStr, Prop>>>; fn into_ndtime(self) -> Option<NaiveDateTime>; fn as_f64(&self) -> Option<f64>; fn into_decimal(self) -> Option<BigDecimal>; fn into_dtime(self) -> Option<DateTime<Utc>>; // Provided methods fn unwrap_u8(self) -> u8 { ... } fn unwrap_u16(self) -> u16 { ... } fn unwrap_str(self) -> ArcStr { ... } fn unwrap_i32(self) -> i32 { ... } fn unwrap_i64(self) -> i64 { ... } fn unwrap_u32(self) -> u32 { ... } fn unwrap_u64(self) -> u64 { ... } fn unwrap_f32(self) -> f32 { ... } fn unwrap_f64(self) -> f64 { ... } fn unwrap_bool(self) -> bool { ... } fn unwrap_list(self) -> PropArray { ... } fn unwrap_map(self) -> Arc<FxHashMap<ArcStr, Prop>> { ... } fn unwrap_ndtime(self) -> NaiveDateTime { ... } fn unwrap_decimal(self) -> BigDecimal { ... } fn unwrap_dtime(self) -> DateTime<Utc> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<P: PropUnwrap> PropUnwrap for Option<P>

Implementors§