Struct timecat::utils::WeightedMove
source · pub struct WeightedMove {
pub weight: MoveWeight,
pub move_: Move,
}
Fields§
§weight: MoveWeight
§move_: Move
Implementations§
source§impl WeightedMove
impl WeightedMove
pub fn new(move_: Move, weight: MoveWeight) -> Self
Trait Implementations§
source§impl Clone for WeightedMove
impl Clone for WeightedMove
source§fn clone(&self) -> WeightedMove
fn clone(&self) -> WeightedMove
Returns a copy 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 moresource§impl Debug for WeightedMove
impl Debug for WeightedMove
source§impl Default for WeightedMove
impl Default for WeightedMove
source§impl<'de> Deserialize<'de> for WeightedMove
impl<'de> Deserialize<'de> for WeightedMove
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromIterator<WeightedMove> for WeightedMoveListSorter
impl FromIterator<WeightedMove> for WeightedMoveListSorter
source§fn from_iter<T: IntoIterator<Item = WeightedMove>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = WeightedMove>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for WeightedMove
impl Hash for WeightedMove
source§impl Ord for WeightedMove
impl Ord for WeightedMove
source§impl PartialEq for WeightedMove
impl PartialEq for WeightedMove
source§fn eq(&self, other: &WeightedMove) -> bool
fn eq(&self, other: &WeightedMove) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WeightedMove
impl PartialOrd for WeightedMove
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for WeightedMove
impl Serialize for WeightedMove
impl Copy for WeightedMove
impl Eq for WeightedMove
impl StructuralPartialEq for WeightedMove
Auto Trait Implementations§
impl Freeze for WeightedMove
impl RefUnwindSafe for WeightedMove
impl Send for WeightedMove
impl Sync for WeightedMove
impl Unpin for WeightedMove
impl UnwindSafe for WeightedMove
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more