pub struct Stats {
pub count: i64,
pub list: Vec<i64>,
}
Fields§
§count: i64
§list: Vec<i64>
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn add(&mut self, val: i64)
pub fn add(&mut self, val: i64)
Add adds values to a Stats variable if the value is not in it already
Sourcepub fn add_list(&mut self, lis: Vec<i64>) -> bool
pub fn add_list(&mut self, lis: Vec<i64>) -> bool
Add_list combines two vectors together, returning true if every value was unique to the stats/tree
Sourcepub fn print_count(&mut self)
pub fn print_count(&mut self)
Prints # of nodes have been added correctly
Sourcepub fn print_list(&mut self)
pub fn print_list(&mut self)
Prints all the node values added correctly
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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