pub enum NetworkLayout {
ForceDirected {
iterations: usize,
seed: u64,
},
Circle,
Grid,
}Expand description
Node placement.
Variants§
ForceDirected
Fruchterman–Reingold forces from a seeded start.
Circle
Nodes evenly on a circle, in first-appearance order.
Grid
Nodes on a square grid, row by row.
Trait Implementations§
Source§impl Clone for NetworkLayout
impl Clone for NetworkLayout
impl Copy for NetworkLayout
Source§impl Debug for NetworkLayout
impl Debug for NetworkLayout
Source§impl Default for NetworkLayout
impl Default for NetworkLayout
Source§impl PartialEq for NetworkLayout
impl PartialEq for NetworkLayout
impl StructuralPartialEq for NetworkLayout
Auto Trait Implementations§
impl Freeze for NetworkLayout
impl RefUnwindSafe for NetworkLayout
impl Send for NetworkLayout
impl Sync for NetworkLayout
impl Unpin for NetworkLayout
impl UnsafeUnpin for NetworkLayout
impl UnwindSafe for NetworkLayout
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more