pub struct Node<N> {
pub name: String,
pub data: N,
pub locked: bool,
pub location: Vec3,
pub old_location: Vec3,
pub delta: 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.
locked: bool
If the node is locked. (if the physics should run on it)
location: Vec3
old_location: Vec3
delta: Vec3
Implementations
Trait Implementations
sourceimpl<N: PartialEq> PartialEq<Node<N>> for Node<N>
impl<N: PartialEq> PartialEq<Node<N>> for Node<N>
impl<N> StructuralPartialEq for Node<N>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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