Contactsish

Trait Contactsish 

Source
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§

Source

fn len(&self) -> usize

Source

fn is_empty(&self) -> bool

Source

fn to_contacts(self) -> Contacts

Source

fn add<C>(&mut self, contact: C)
where C: Contactish,

Source

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.

Implementations on Foreign Types§

Source§

impl Contactsish for Vec<Contact>

Source§

fn len(&self) -> usize

Source§

fn is_empty(&self) -> bool

Source§

fn to_contacts(self) -> Contacts

Source§

fn add<C>(&mut self, contact: C)
where C: Contactish,

Source§

fn contains(&self, contact: &Contact) -> bool

Implementors§