3 ms·
One disadvantage here is taking the entire struct on each operation even if only a single part of it is needed. That can be much harder to deal with due to owne
by diarrhea 3y ago
One disadvantage here is taking the entire struct on each operation even if only a single part of it is needed. That can be much harder to deal with due to ownership rules (if &Mut self or all of self is taken). Free functions can be easier then.