Struct MySql
pub struct MySql;Expand description
MySQL database driver.
Trait Implementations§
§impl Database for MySql
 
impl Database for MySql
§const URL_SCHEMES: &'static [&'static str]
 
const URL_SCHEMES: &'static [&'static str]
The schemes for database URLs that should match this driver.
§type Connection = MySqlConnection
 
type Connection = MySqlConnection
The concrete 
Connection implementation for this database.§type TransactionManager = MySqlTransactionManager
 
type TransactionManager = MySqlTransactionManager
The concrete 
TransactionManager implementation for this database.§type QueryResult = MySqlQueryResult
 
type QueryResult = MySqlQueryResult
The concrete 
QueryResult implementation for this database.§type Column = MySqlColumn
 
type Column = MySqlColumn
The concrete 
Column implementation for this database.§type TypeInfo = MySqlTypeInfo
 
type TypeInfo = MySqlTypeInfo
The concrete 
TypeInfo implementation for this database.§type Value = MySqlValue
 
type Value = MySqlValue
The concrete type used to hold an owned copy of the not-yet-decoded value that was
received from the database.
§type ValueRef<'r> = MySqlValueRef<'r>
 
type ValueRef<'r> = MySqlValueRef<'r>
The concrete type used to hold a reference to the not-yet-decoded value that has just been
received from the database.
§type Arguments<'q> = MySqlArguments
 
type Arguments<'q> = MySqlArguments
The concrete 
Arguments implementation for this database.§type ArgumentBuffer<'q> = Vec<u8>
 
type ArgumentBuffer<'q> = Vec<u8>
The concrete type used as a buffer for arguments while encoding.
§type Statement<'q> = MySqlStatement<'q>
 
type Statement<'q> = MySqlStatement<'q>
The concrete 
Statement implementation for this database.§impl Decode<'_, MySql> for BigDecimal
 
impl Decode<'_, MySql> for BigDecimal
§fn decode(
    value: MySqlValueRef<'_>,
) -> Result<BigDecimal, Box<dyn Error + Sync + Send>>
 
fn decode( value: MySqlValueRef<'_>, ) -> Result<BigDecimal, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
§impl Decode<'_, MySql> for Hyphenated
 
impl Decode<'_, MySql> for Hyphenated
§fn decode(
    value: MySqlValueRef<'_>,
) -> Result<Hyphenated, Box<dyn Error + Sync + Send>>
 
fn decode( value: MySqlValueRef<'_>, ) -> Result<Hyphenated, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
§impl<'r> Decode<'r, MySql> for NaiveDateTime
 
impl<'r> Decode<'r, MySql> for NaiveDateTime
§fn decode(
    value: MySqlValueRef<'r>,
) -> Result<NaiveDateTime, Box<dyn Error + Sync + Send>>
 
fn decode( value: MySqlValueRef<'r>, ) -> Result<NaiveDateTime, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
§impl<'r> Decode<'r, MySql> for DateTime<Local>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
 
impl<'r> Decode<'r, MySql> for DateTime<Local>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
§impl<'r> Decode<'r, MySql> for DateTime<Utc>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
 
impl<'r> Decode<'r, MySql> for DateTime<Utc>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
§impl<'r, T> Decode<'r, MySql> for Json<T>where
    T: 'r + Deserialize<'r>,
 
impl<'r, T> Decode<'r, MySql> for Json<T>where
    T: 'r + Deserialize<'r>,
§impl<'r> Decode<'r, MySql> for NaiveTime
Decode from a TIME value.
 
impl<'r> Decode<'r, MySql> for NaiveTime
Decode from a TIME value.
§Errors
Returns an error if the TIME value is negative or exceeds 23:59:59.999999.
§impl<'r> Decode<'r, MySql> for PrimitiveDateTime
 
impl<'r> Decode<'r, MySql> for PrimitiveDateTime
§fn decode(
    value: MySqlValueRef<'r>,
) -> Result<PrimitiveDateTime, Box<dyn Error + Sync + Send>>
 
fn decode( value: MySqlValueRef<'r>, ) -> Result<PrimitiveDateTime, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
§impl<'r> Decode<'r, MySql> for OffsetDateTime
 
impl<'r> Decode<'r, MySql> for OffsetDateTime
§fn decode(
    value: MySqlValueRef<'r>,
) -> Result<OffsetDateTime, Box<dyn Error + Sync + Send>>
 
fn decode( value: MySqlValueRef<'r>, ) -> Result<OffsetDateTime, Box<dyn Error + Sync + Send>>
Decode a new value of this type using a raw value from the database.
§impl Encode<'_, MySql> for &[u8]
 
impl Encode<'_, MySql> for &[u8]
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for &str
 
impl Encode<'_, MySql> for &str
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for BigDecimal
 
impl Encode<'_, MySql> for BigDecimal
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Box<[u8]>
 
impl Encode<'_, MySql> for Box<[u8]>
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Box<str>
 
impl Encode<'_, MySql> for Box<str>
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Cow<'_, str>
 
impl Encode<'_, MySql> for Cow<'_, str>
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for NaiveDate
 
impl Encode<'_, MySql> for NaiveDate
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl Encode<'_, MySql> for NaiveDateTime
 
impl Encode<'_, MySql> for NaiveDateTime
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl Encode<'_, MySql> for DateTime<Local>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
 
impl Encode<'_, MySql> for DateTime<Local>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for DateTime<Utc>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
 
impl Encode<'_, MySql> for DateTime<Utc>
Note: assumes the connection’s time_zone is set to +00:00 (UTC).
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Decimal
 
impl Encode<'_, MySql> for Decimal
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Hyphenated
 
impl Encode<'_, MySql> for Hyphenated
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for IpAddr
 
impl Encode<'_, MySql> for IpAddr
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Ipv4Addr
 
impl Encode<'_, MySql> for Ipv4Addr
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Ipv6Addr
 
impl Encode<'_, MySql> for Ipv6Addr
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl<T> Encode<'_, MySql> for Json<T>where
    T: Serialize,
 
impl<T> Encode<'_, MySql> for Json<T>where
    T: Serialize,
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Simple
 
impl Encode<'_, MySql> for Simple
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for String
 
impl Encode<'_, MySql> for String
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for NaiveTime
 
impl Encode<'_, MySql> for NaiveTime
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl Encode<'_, MySql> for Date
 
impl Encode<'_, MySql> for Date
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl Encode<'_, MySql> for PrimitiveDateTime
 
impl Encode<'_, MySql> for PrimitiveDateTime
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl Encode<'_, MySql> for OffsetDateTime
 
impl Encode<'_, MySql> for OffsetDateTime
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Time
 
impl Encode<'_, MySql> for Time
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl Encode<'_, MySql> for Uuid
 
impl Encode<'_, MySql> for Uuid
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for Vec<u8>
 
impl Encode<'_, MySql> for Vec<u8>
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for bool
 
impl Encode<'_, MySql> for bool
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for f32
 
impl Encode<'_, MySql> for f32
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for f64
 
impl Encode<'_, MySql> for f64
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for i16
 
impl Encode<'_, MySql> for i16
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for i32
 
impl Encode<'_, MySql> for i32
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for i64
 
impl Encode<'_, MySql> for i64
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for i8
 
impl Encode<'_, MySql> for i8
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for u16
 
impl Encode<'_, MySql> for u16
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for u32
 
impl Encode<'_, MySql> for u32
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for u64
 
impl Encode<'_, MySql> for u64
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl Encode<'_, MySql> for u8
 
impl Encode<'_, MySql> for u8
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl<'q> Encode<'q, MySql> for MySqlTime
 
impl<'q> Encode<'q, MySql> for MySqlTime
§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn size_hint(&self) -> usize
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
§impl<'q, T> Encode<'q, MySql> for Option<T>
 
impl<'q, T> Encode<'q, MySql> for Option<T>
fn produces(&self) -> Option<<MySql as Database>::TypeInfo>
§fn encode(
    self,
    buf: &mut <MySql as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
 
fn encode( self, buf: &mut <MySql as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Writes the value of 
self into buf in the expected format for the database.§fn encode_by_ref(
    &self,
    buf: &mut <MySql as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
 
fn encode_by_ref( &self, buf: &mut <MySql as Database>::ArgumentBuffer<'q>, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn size_hint(&self) -> usize
§impl<'q, T> Encode<'q, MySql> for Text<T>where
    T: Display,
 
impl<'q, T> Encode<'q, MySql> for Text<T>where
    T: Display,
§fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
 
fn encode(
    self,
    buf: &mut <DB as Database>::ArgumentBuffer<'q>,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>where
    Self: Sized,
Writes the value of 
self into buf in the expected format for the database.fn produces(&self) -> Option<<DB as Database>::TypeInfo>
fn size_hint(&self) -> usize
§impl IntoArguments<'_, MySql> for SqlxValues
 
impl IntoArguments<'_, MySql> for SqlxValues
fn into_arguments(self) -> MySqlArguments
§impl Type<MySql> for [u8]
 
impl Type<MySql> for [u8]
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for BigDecimal
 
impl Type<MySql> for BigDecimal
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Box<[u8]>
 
impl Type<MySql> for Box<[u8]>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Box<str>
 
impl Type<MySql> for Box<str>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Cow<'_, str>
 
impl Type<MySql> for Cow<'_, str>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for NaiveDate
 
impl Type<MySql> for NaiveDate
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for NaiveDateTime
 
impl Type<MySql> for NaiveDateTime
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for DateTime<Local>
 
impl Type<MySql> for DateTime<Local>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for DateTime<Utc>
 
impl Type<MySql> for DateTime<Utc>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Decimal
 
impl Type<MySql> for Decimal
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Duration
 
impl Type<MySql> for Duration
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for Duration
 
impl Type<MySql> for Duration
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for Hyphenated
 
impl Type<MySql> for Hyphenated
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for IpAddr
 
impl Type<MySql> for IpAddr
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Ipv4Addr
 
impl Type<MySql> for Ipv4Addr
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Ipv6Addr
 
impl Type<MySql> for Ipv6Addr
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl<T> Type<MySql> for Json<T>
 
impl<T> Type<MySql> for Json<T>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for MySqlTime
 
impl Type<MySql> for MySqlTime
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for Simple
 
impl Type<MySql> for Simple
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for String
 
impl Type<MySql> for String
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl<T> Type<MySql> for Text<T>
 
impl<T> Type<MySql> for Text<T>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for NaiveTime
 
impl Type<MySql> for NaiveTime
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for Date
 
impl Type<MySql> for Date
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for PrimitiveDateTime
 
impl Type<MySql> for PrimitiveDateTime
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for OffsetDateTime
 
impl Type<MySql> for OffsetDateTime
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for TimeDelta
 
impl Type<MySql> for TimeDelta
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for Time
 
impl Type<MySql> for Time
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§impl Type<MySql> for Uuid
 
impl Type<MySql> for Uuid
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for Vec<u8>
 
impl Type<MySql> for Vec<u8>
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for bool
 
impl Type<MySql> for bool
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for f32
 
impl Type<MySql> for f32
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for f64
 
impl Type<MySql> for f64
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for i16
 
impl Type<MySql> for i16
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for i32
 
impl Type<MySql> for i32
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for i64
 
impl Type<MySql> for i64
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for i8
 
impl Type<MySql> for i8
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for str
 
impl Type<MySql> for str
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for u16
 
impl Type<MySql> for u16
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for u32
 
impl Type<MySql> for u32
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for u64
 
impl Type<MySql> for u64
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl Type<MySql> for u8
 
impl Type<MySql> for u8
§fn type_info() -> MySqlTypeInfo
 
fn type_info() -> MySqlTypeInfo
Returns the canonical SQL type for this Rust type. Read more
§fn compatible(ty: &MySqlTypeInfo) -> bool
 
fn compatible(ty: &MySqlTypeInfo) -> bool
Determines if this Rust type is compatible with the given SQL type. Read more
§impl TypeChecking for MySql
 
impl TypeChecking for MySql
§const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
 
const PARAM_CHECKING: ParamChecking = ::sqlx_core::type_checking::ParamChecking::Weak
Describes how the database in question typechecks query parameters.
§fn param_type_for_id(
    info: &<MySql as Database>::TypeInfo,
) -> Option<&'static str>
 
fn param_type_for_id( info: &<MySql as Database>::TypeInfo, ) -> Option<&'static str>
Get the full path of the Rust type that corresponds to the given 
TypeInfo, if applicable. Read more§fn return_type_for_id(
    info: &<MySql as Database>::TypeInfo,
) -> Option<&'static str>
 
fn return_type_for_id( info: &<MySql as Database>::TypeInfo, ) -> Option<&'static str>
Get the full path of the Rust type that corresponds to the given 
TypeInfo, if applicable. Read moreimpl HasStatementCache for MySql
Auto Trait Implementations§
impl Freeze for MySql
impl RefUnwindSafe for MySql
impl Send for MySql
impl Sync for MySql
impl Unpin for MySql
impl UnwindSafe for MySql
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
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
 
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more