GoodOrmningCustomBool

Trait GoodOrmningCustomBool 

Source
pub trait GoodOrmningCustomBool<T> {
    // Required methods
    fn to_sql(value: &T) -> bool;
    fn from_sql(value: bool) -> Result<T, String>;
}

Required Methods§

Source

fn to_sql(value: &T) -> bool

Source

fn from_sql(value: bool) -> Result<T, String>

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.

Implementors§