pub struct Weighed<T> {
pub object: T,
pub weight: FastFloat,
}
Expand description
Defines an object with assigned weight
Fields§
§object: T
§weight: FastFloat
Implementations§
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
source§impl<T> CloneWithNode for Twhere
T: Clone,
impl<T> CloneWithNode for Twhere
T: Clone,
fn clone_with_node(&mut self) -> T
fn clone_without_node(&self) -> T
source§impl<T> Convert for T
impl<T> Convert for T
source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Errors Read more
source§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Errors Read more