pub struct Percolation { /* private fields */ }Expand description
Percolation cluster generator.
Implementations§
Source§impl Percolation
impl Percolation
Sourcepub fn new(config: PercolationConfig) -> Self
pub fn new(config: PercolationConfig) -> Self
Creates a new percolation generator with the given config.
Trait Implementations§
Source§impl Algorithm for Percolation
impl Algorithm for Percolation
Source§impl Clone for Percolation
impl Clone for Percolation
Source§fn clone(&self) -> Percolation
fn clone(&self) -> Percolation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Percolation
impl Debug for Percolation
Source§impl Default for Percolation
impl Default for Percolation
Source§impl<'de> Deserialize<'de> for Percolation
impl<'de> Deserialize<'de> for Percolation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Percolation
impl RefUnwindSafe for Percolation
impl Send for Percolation
impl Sync for Percolation
impl Unpin for Percolation
impl UnwindSafe for Percolation
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