pub trait UserCount {
// Required methods
fn user_increase(&mut self);
fn user_count(&self) -> usize;
// Provided method
fn user_empty(&self) -> bool { ... }
}
Expand description
Trait for user counts of objects.
Required Methods§
Sourcefn user_increase(&mut self)
fn user_increase(&mut self)
Add a user
Sourcefn user_count(&self) -> usize
fn user_count(&self) -> usize
How many users have been registered
Provided Methods§
Sourcefn user_empty(&self) -> bool
fn user_empty(&self) -> bool
Are there any users registered