pub trait Contactsish {
// Required methods
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn to_contacts(self) -> Contacts;
fn add<C>(&mut self, contact: C)
where C: Contactish;
fn contains(&self, contact: &Contact) -> bool;
}Expand description
For everything that has contacts
Required Methods§
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn to_contacts(self) -> Contacts
fn add<C>(&mut self, contact: C)where
C: Contactish,
fn contains(&self, contact: &Contact) -> bool
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.