pub struct Group { /* private fields */ }Expand description
A group of people that wants to draw names.
Implementations§
Source§impl Group
impl Group
Sourcepub fn exclude(&mut self, from: String, to: String)
pub fn exclude(&mut self, from: String, to: String)
Make sure that person A does not have to give person B a gift.
Sourcepub fn exclude_pair(&mut self, a: String, b: String)
pub fn exclude_pair(&mut self, a: String, b: String)
Make sure that person A and B don’t have to give each other gifts.
Sourcepub fn contains_name(&self, name: &str) -> bool
pub fn contains_name(&self, name: &str) -> bool
Return whether the specified name is alread in the group.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more