pub trait FromRawValue<'buf>: Sized {
Show 23 methods
// Provided methods
fn from_null() -> Result<Self> { ... }
fn from_i8(_v: i8) -> Result<Self> { ... }
fn from_i16(_v: i16) -> Result<Self> { ... }
fn from_i32(_v: i32) -> Result<Self> { ... }
fn from_i64(_v: i64) -> Result<Self> { ... }
fn from_u8(_v: u8) -> Result<Self> { ... }
fn from_u16(_v: u16) -> Result<Self> { ... }
fn from_u32(_v: u32) -> Result<Self> { ... }
fn from_u64(_v: u64) -> Result<Self> { ... }
fn from_float(_v: f32) -> Result<Self> { ... }
fn from_double(_v: f64) -> Result<Self> { ... }
fn from_bytes(_v: &'buf [u8]) -> Result<Self> { ... }
fn from_str(_v: &'buf [u8]) -> Result<Self> { ... }
fn from_decimal(_v: &'buf [u8]) -> Result<Self> { ... }
fn from_date0() -> Result<Self> { ... }
fn from_date4(_v: &'buf Timestamp4) -> Result<Self> { ... }
fn from_datetime0() -> Result<Self> { ... }
fn from_datetime4(_v: &'buf Timestamp4) -> Result<Self> { ... }
fn from_datetime7(_v: &'buf Timestamp7) -> Result<Self> { ... }
fn from_datetime11(_v: &'buf Timestamp11) -> Result<Self> { ... }
fn from_time0() -> Result<Self> { ... }
fn from_time8(_v: &'buf Time8) -> Result<Self> { ... }
fn from_time12(_v: &'buf Time12) -> Result<Self> { ... }
}Expand description
Trait for types that can be decoded from MySQL binary protocol values.
Each method corresponds to a MySQL wire format. Implementations should
return Err for unsupported conversions.
Provided Methods§
fn from_null() -> Result<Self>
fn from_i8(_v: i8) -> Result<Self>
fn from_i16(_v: i16) -> Result<Self>
fn from_i32(_v: i32) -> Result<Self>
fn from_i64(_v: i64) -> Result<Self>
fn from_u8(_v: u8) -> Result<Self>
fn from_u16(_v: u16) -> Result<Self>
fn from_u32(_v: u32) -> Result<Self>
fn from_u64(_v: u64) -> Result<Self>
fn from_float(_v: f32) -> Result<Self>
fn from_double(_v: f64) -> Result<Self>
fn from_bytes(_v: &'buf [u8]) -> Result<Self>
fn from_str(_v: &'buf [u8]) -> Result<Self>
fn from_decimal(_v: &'buf [u8]) -> Result<Self>
fn from_date0() -> Result<Self>
fn from_date4(_v: &'buf Timestamp4) -> Result<Self>
fn from_datetime0() -> Result<Self>
fn from_datetime4(_v: &'buf Timestamp4) -> Result<Self>
fn from_datetime7(_v: &'buf Timestamp7) -> Result<Self>
fn from_datetime11(_v: &'buf Timestamp11) -> Result<Self>
fn from_time0() -> Result<Self>
fn from_time8(_v: &'buf Time8) -> Result<Self>
fn from_time12(_v: &'buf Time12) -> Result<Self>
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.