Skip to main content

IsNullable

Trait IsNullable 

Source
pub trait IsNullable {
    const IS_NULLABLE: bool;
}
Expand description

Helper trait that is used to mark if a type could be NULL on the SQL side.

Required Associated Constants§

Source

const IS_NULLABLE: bool

Is this type nullable

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.

Implementations on Foreign Types§

Source§

impl IsNullable for bool

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for char

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for f32

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for f64

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for i8

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for i16

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for i32

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for i64

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for u8

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for u16

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for u32

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for u64

Source§

const IS_NULLABLE: bool = false

Source§

impl IsNullable for String

Source§

const IS_NULLABLE: bool = false

Source§

impl<T> IsNullable for Option<T>

Source§

impl<T: IsNullable> IsNullable for Vec<T>

Source§

const IS_NULLABLE: bool = T::IS_NULLABLE

Implementors§