Implementations
sourceimpl<N: Clone, E: Clone> Force<N, E>
impl<N: Clone, E: Clone> Force<N, E>
sourcepub fn update(&self, graph: &mut ForceGraph<N, E>, dt: f32)
pub fn update(&self, graph: &mut ForceGraph<N, E>, dt: f32)
Update the graph’s node’s positions for a given interval.
sourcepub fn dict_mut(&mut self) -> &mut [DictionaryEntry]
pub fn dict_mut(&mut self) -> &mut [DictionaryEntry]
Retrieve a mutable reference to the force’s internal dictionary.
sourcepub fn dict(&self) -> &[DictionaryEntry]
pub fn dict(&self) -> &[DictionaryEntry]
Retrieve a reference to the force’s internal dictionary.
sourcepub fn continuous(&self) -> bool
pub fn continuous(&self) -> bool
Retrieve if the force is continuous. Continuous forces run their update on every frame, non-continuous forces run their update every time the user clicks a “Run” button.
Trait Implementations
Auto Trait Implementations
impl<N, E> RefUnwindSafe for Force<N, E>
impl<N, E> Send for Force<N, E>
impl<N, E> Sync for Force<N, E>
impl<N, E> Unpin for Force<N, E>
impl<N, E> UnwindSafe for Force<N, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more