pub struct ConstantVariable {
pub name: String,
pub value: f32,
}
Expand description
This class is used to represent a constant variable for difficulty calculation. It is also used for optimization.
Fields§
§name: String
Name of this constant
value: f32
Value of this constant
Implementations§
Trait Implementations§
Source§impl Clone for ConstantVariable
impl Clone for ConstantVariable
Source§fn clone(&self) -> ConstantVariable
fn clone(&self) -> ConstantVariable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ConstantVariable
impl RefUnwindSafe for ConstantVariable
impl Send for ConstantVariable
impl Sync for ConstantVariable
impl Unpin for ConstantVariable
impl UnwindSafe for ConstantVariable
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