pub struct GridGraphParams {
pub height: i32,
pub width: i32,
pub max_capacity: i32,
pub max_cost: i32,
pub seed: i32,
}Expand description
Parameters that fully describe a GRIDGRAPH instance.
Fields§
§height: i32Grid height (rows), must be positive.
width: i32Grid width (columns), must be at least 2.
max_capacity: i32Maximum arc capacity, sampled uniformly from [1, max_capacity].
max_cost: i32Maximum arc cost, sampled uniformly from [1, max_cost].
seed: i32Positive integer seed for the Park-Miller RNG.
Implementations§
Trait Implementations§
Source§impl Clone for GridGraphParams
impl Clone for GridGraphParams
Source§fn clone(&self) -> GridGraphParams
fn clone(&self) -> GridGraphParams
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 GridGraphParams
impl Debug for GridGraphParams
Source§impl Hash for GridGraphParams
impl Hash for GridGraphParams
Source§impl PartialEq for GridGraphParams
impl PartialEq for GridGraphParams
impl Copy for GridGraphParams
impl Eq for GridGraphParams
impl StructuralPartialEq for GridGraphParams
Auto Trait Implementations§
impl Freeze for GridGraphParams
impl RefUnwindSafe for GridGraphParams
impl Send for GridGraphParams
impl Sync for GridGraphParams
impl Unpin for GridGraphParams
impl UnsafeUnpin for GridGraphParams
impl UnwindSafe for GridGraphParams
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