Struct sqlx_oldapi::Mssql

source ·
pub struct Mssql;
Available on crate feature mssql only.
Expand description

MSSQL database driver.

Trait Implementations§

source§

impl Database for Mssql

§

type Connection = MssqlConnection

The concrete Connection implementation for this database.
§

type TransactionManager = MssqlTransactionManager

The concrete TransactionManager implementation for this database.
§

type Row = MssqlRow

The concrete Row implementation for this database.
§

type QueryResult = MssqlQueryResult

The concrete QueryResult implementation for this database.
§

type Column = MssqlColumn

The concrete Column implementation for this database.
§

type TypeInfo = MssqlTypeInfo

The concrete TypeInfo implementation for this database.
§

type Value = MssqlValue

The concrete type used to hold an owned copy of the not-yet-decoded value that was received from the database.
source§

impl Debug for Mssql

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Decode<'_, Mssql> for BigDecimal

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<BigDecimal, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for DateTime<FixedOffset>

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<DateTime<FixedOffset>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for DateTime<Utc>

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<DateTime<Utc>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for Decimal

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<Decimal, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for NaiveDate

Decodes Date values received from the server

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<NaiveDate, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for NaiveDateTime

Decodes DateTime2N values received from the server

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<NaiveDateTime, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for NaiveTime

Decodes Time values received from the server

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<NaiveTime, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for String

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<String, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for Vec<u8>

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for bool

source§

fn decode( value: MssqlValueRef<'_> ) -> Result<bool, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for f32

source§

fn decode(value: MssqlValueRef<'_>) -> Result<f32, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for f64

source§

fn decode(value: MssqlValueRef<'_>) -> Result<f64, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for i16

source§

fn decode(value: MssqlValueRef<'_>) -> Result<i16, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for i32

source§

fn decode(value: MssqlValueRef<'_>) -> Result<i32, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for i64

source§

fn decode(value: MssqlValueRef<'_>) -> Result<i64, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for i8

source§

fn decode(value: MssqlValueRef<'_>) -> Result<i8, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Decode<'_, Mssql> for u8

source§

fn decode(value: MssqlValueRef<'_>) -> Result<u8, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl<'r> Decode<'r, Mssql> for &'r [u8]

source§

fn decode( value: MssqlValueRef<'r> ) -> Result<&'r [u8], Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl<'r> Decode<'r, Mssql> for Cow<'r, [u8]>

source§

fn decode( value: MssqlValueRef<'r> ) -> Result<Cow<'r, [u8]>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl<'r> Decode<'r, Mssql> for Cow<'r, str>

source§

fn decode( value: MssqlValueRef<'r> ) -> Result<Cow<'r, str>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl<'r, T> Decode<'r, Mssql> for Json<T>
where T: 'r + Deserialize<'r>,

source§

fn decode( value: MssqlValueRef<'r> ) -> Result<Json<T>, Box<dyn Error + Send + Sync>>

Decode a new value of this type using a raw value from the database.
source§

impl Encode<'_, Mssql> for &[u8]

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for &str

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for BigDecimal

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for Cow<'_, str>

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl<'r> Encode<'_, Mssql> for Cow<'r, [u8]>

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl<T> Encode<'_, Mssql> for DateTime<T>
where T: TimeZone,

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for Decimal

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for NaiveDate

Encodes Date objects for transfer over the wire

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for NaiveDateTime

Encodes DateTime objects for transfer over the wire

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for NaiveTime

Encodes Time objects for transfer over the wire

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for String

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for Vec<u8>

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for bool

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for f32

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for f64

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i16

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i32

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i64

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for i8

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl Encode<'_, Mssql> for u8

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn produces(&self) -> Option<<DB as Database>::TypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl<'q, T> Encode<'q, Mssql> for Json<T>
where T: Serialize,

source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn encode(self, buf: &mut <DB as HasArguments<'q>>::ArgumentBuffer) -> IsNull
where Self: Sized,

Writes the value of self into buf in the expected format for the database.
source§

fn size_hint(&self) -> usize

source§

impl<'q, T> Encode<'q, Mssql> for Option<T>
where T: 'q + Encode<'q, Mssql>,

source§

fn encode(self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf in the expected format for the database.
source§

fn encode_by_ref(&self, buf: &mut Vec<u8>) -> IsNull

Writes the value of self into buf without moving self. Read more
source§

fn produces(&self) -> Option<MssqlTypeInfo>

source§

fn size_hint(&self) -> usize

source§

impl HasArguments<'_> for Mssql

§

type Database = Mssql

§

type Arguments = MssqlArguments

The concrete Arguments implementation for this database.
§

type ArgumentBuffer = Vec<u8>

The concrete type used as a buffer for arguments while encoding.
source§

impl<'q> HasStatement<'q> for Mssql

§

type Database = Mssql

§

type Statement = MssqlStatement<'q>

The concrete Statement implementation for this database.
source§

impl<'r> HasValueRef<'r> for Mssql

§

type Database = Mssql

§

type ValueRef = MssqlValueRef<'r>

The concrete type used to hold a reference to the not-yet-decoded value that has just been received from the database.
source§

impl Type<Mssql> for [u8]

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for BigDecimal

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for Cow<'_, str>

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl<'r> Type<Mssql> for Cow<'r, [u8]>

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl<T> Type<Mssql> for DateTime<T>
where T: TimeZone,

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for Decimal

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl<T> Type<Mssql> for Json<T>

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for NaiveDate

Provides conversion of chrono::NaiveDate to MS SQL Date

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for NaiveDateTime

Provides conversion of chrono::DateTime (UTC) to MS SQL DateTime2N

Note that MS SQL has a number of DateTime-related types and conversion might not work. During encoding, values are always encoded with the best possible precision, which uses 7 digits for nanoseconds.

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for NaiveTime

Provides conversion of chrono::NaiveTime to MS SQL Time

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for String

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for Vec<u8>

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for bool

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for f32

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for f64

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for i16

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for i32

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for i64

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for i8

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for str

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more
source§

impl Type<Mssql> for u8

source§

fn type_info() -> MssqlTypeInfo

Returns the canonical SQL type for this Rust type. Read more
source§

fn compatible(ty: &MssqlTypeInfo) -> bool

Determines if this Rust type is compatible with the given SQL type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V