Trait email_address_list::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

Object Safety§

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§