pub struct Node<N> {
pub name: String,
pub data: N,
pub location: Vec3,
pub old_location: Vec3,
pub velocity: Vec3,
}
Expand description
A node on a ForceGraph
.
Fields§
§name: String
The name of the node.
data: N
Any arbitrary information you want to store within it.
location: Vec3
§old_location: Vec3
§velocity: Vec3
Implementations§
Trait Implementations§
impl<N> StructuralPartialEq for Node<N>
Auto Trait Implementations§
impl<N> Freeze for Node<N>where
N: Freeze,
impl<N> RefUnwindSafe for Node<N>where
N: RefUnwindSafe,
impl<N> Send for Node<N>where
N: Send,
impl<N> Sync for Node<N>where
N: Sync,
impl<N> Unpin for Node<N>where
N: Unpin,
impl<N> UnwindSafe for Node<N>where
N: UnwindSafe,
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