pub enum EdgeStrategy {
Knn {
k: usize,
},
WarpRange {
max_ly: f64,
},
}Expand description
Strategy for generating graph edges.
Variants§
Knn
Connect each system to its k nearest neighbors.
WarpRange
Connect all systems within warp range (light-years).
Trait Implementations§
Source§impl Clone for EdgeStrategy
impl Clone for EdgeStrategy
Source§fn clone(&self) -> EdgeStrategy
fn clone(&self) -> EdgeStrategy
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 EdgeStrategy
impl Debug for EdgeStrategy
Source§impl Default for EdgeStrategy
impl Default for EdgeStrategy
impl Copy for EdgeStrategy
Auto Trait Implementations§
impl Freeze for EdgeStrategy
impl RefUnwindSafe for EdgeStrategy
impl Send for EdgeStrategy
impl Sync for EdgeStrategy
impl Unpin for EdgeStrategy
impl UnsafeUnpin for EdgeStrategy
impl UnwindSafe for EdgeStrategy
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