pub struct Node<'a, T> { /* private fields */ }Expand description
A node with an associated weight.
The distribution of points to nodes is proportional to the weights of the nodes. For example, a node with a weight of 3 will receive approximately three times more points than a node with a weight of 1.
Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Node<'a, T>
impl<'a, T> RefUnwindSafe for Node<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Node<'a, T>where
T: Sync,
impl<'a, T> Sync for Node<'a, T>where
T: Sync,
impl<'a, T> Unpin for Node<'a, T>
impl<'a, T> UnsafeUnpin for Node<'a, T>
impl<'a, T> UnwindSafe for Node<'a, T>where
T: RefUnwindSafe,
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