Skip to main content

TableKey

Trait TableKey 

Source
pub trait TableKey:
    Ord
    + FromStr
    + Display
    + Debug
    + Clone {
    // Required method
    fn parse_key(value: &str) -> Result<Self, String>
       where Self: Sized;
}
Expand description

Trait alias-like bound for primary key types supported by Table.

Required Methods§

Source

fn parse_key(value: &str) -> Result<Self, String>
where Self: Sized,

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§

Source§

impl<T> TableKey for T
where T: Ord + FromStr + Display + Debug + Clone, T::Err: Display,