pub trait TypeInfo:
Debug
+ Display
+ Clone
+ PartialEq
+ Send
+ Sync {
// Required methods
fn is_null(&self) -> bool;
fn name(&self) -> &str;
// Provided method
fn type_compatible(&self, other: &Self) -> bool
where Self: Sized { ... }
}Expand description
Provides information about a SQL type for the database driver.
Required Methods§
Provided Methods§
sourcefn type_compatible(&self, other: &Self) -> boolwhere
Self: Sized,
fn type_compatible(&self, other: &Self) -> boolwhere
Self: Sized,
Return true if self and other represent mutually compatible types.
Defaults to self == other.
Object Safety§
This trait is not object safe.