pub struct BranchRules {
pub branch_density: f64,
pub staging_probability: f64,
}Expand description
Rules to create branches.
With Default values, the path will never create a branch.
Fields§
§branch_density: f64Density of intersections (probability of branching). If 1.0, the path will always create intersection.
staging_probability: f64Probability of staging.
Trait Implementations§
Source§impl Clone for BranchRules
impl Clone for BranchRules
Source§fn clone(&self) -> BranchRules
fn clone(&self) -> BranchRules
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 BranchRules
impl Debug for BranchRules
Source§impl Default for BranchRules
impl Default for BranchRules
Source§impl PartialEq for BranchRules
impl PartialEq for BranchRules
impl StructuralPartialEq for BranchRules
Auto Trait Implementations§
impl Freeze for BranchRules
impl RefUnwindSafe for BranchRules
impl Send for BranchRules
impl Sync for BranchRules
impl Unpin for BranchRules
impl UnwindSafe for BranchRules
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