pub struct DrunkardConfig {
pub floor_percent: f64,
pub max_iterations: usize,
}Expand description
Configuration for drunkard walk generation.
Fields§
§floor_percent: f64Target floor percentage (0.0–1.0). Default: 0.4.
max_iterations: usizeMaximum walk steps. Default: 50000.
Trait Implementations§
Source§impl Clone for DrunkardConfig
impl Clone for DrunkardConfig
Source§fn clone(&self) -> DrunkardConfig
fn clone(&self) -> DrunkardConfig
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 DrunkardConfig
impl Debug for DrunkardConfig
Source§impl Default for DrunkardConfig
impl Default for DrunkardConfig
Source§impl<'de> Deserialize<'de> for DrunkardConfig
impl<'de> Deserialize<'de> for DrunkardConfig
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 DrunkardConfig
impl RefUnwindSafe for DrunkardConfig
impl Send for DrunkardConfig
impl Sync for DrunkardConfig
impl Unpin for DrunkardConfig
impl UnwindSafe for DrunkardConfig
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