pub struct Weighed<T> {
pub object: T,
pub weight: f64,
}Expand description
Defines an object with assigned weight
Fields§
§object: T§weight: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Weighed<T>where T: RefUnwindSafe,
impl<T> Send for Weighed<T>where T: Send,
impl<T> Sync for Weighed<T>where T: Sync,
impl<T> Unpin for Weighed<T>where T: Unpin,
impl<T> UnwindSafe for Weighed<T>where T: 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