[−][src]Trait generations::Clearable
Clearable
is a trait for data structures that can be cleared, especially
without deallocating storage. Models used in Generations
must be
Clearable
, and the output generation will be cleared before each step.
It is implemented for all std data structures and many std types; feel free to add pull requests for any std types that you think should be clearable.
Required methods
fn clear(&mut self)
Clear this data structure, ideally without deallocating its memory. Puts the data structure in a "fresh" state to be written to during each new generation.