pub trait IsValue: Sized + Clone {
const TY: Ty;
// Provided methods
fn is_null(&self) -> bool { ... }
fn is_primitive(&self) -> bool { ... }
fn fixed_length(&self) -> usize { ... }
fn as_timestamp(&self) -> i64 { ... }
fn as_var_char(&self) -> &str { ... }
fn as_nchar(&self) -> &str { ... }
fn as_medium_blob(&self) -> &[u8] ⓘ { ... }
fn as_blob(&self) -> &[u8] ⓘ { ... }
}Required Associated Constants§
Provided Methods§
fn is_null(&self) -> bool
fn is_primitive(&self) -> bool
fn fixed_length(&self) -> usize
fn as_timestamp(&self) -> i64
fn as_var_char(&self) -> &str
fn as_nchar(&self) -> &str
fn as_medium_blob(&self) -> &[u8] ⓘ
fn as_blob(&self) -> &[u8] ⓘ
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.