Skip to main content

CastTarget

Trait CastTarget 

Source
pub trait CastTarget<'a, T: DataType, D> {
    // Required method
    fn cast_type_name(self) -> &'a str;
}
Expand description

The target argument of cast: a SQL type name such as "VARCHAR(255)", or a type marker value whose DefaultCastTypeName is used.

Required Methods§

Source

fn cast_type_name(self) -> &'a str

The SQL type name to cast to.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<'a, T: DataType, D> CastTarget<'a, T, D> for &'a str

Source§

fn cast_type_name(self) -> &'a str

Implementors§

Source§

impl<'a, T, D> CastTarget<'a, T, D> for T