pub struct WeightedSupport<A: Clone + Eq> {
pub supporter: A,
pub supported: A,
pub weight: AttackWeight,
}Expand description
A weighted directed support edge: supporter supports supported
with the given weight under necessary-support semantics.
Fields§
§supporter: AThe supporter argument.
supported: AThe supported argument.
weight: AttackWeightThe support weight. Higher weights are harder to tolerate.
Implementations§
Trait Implementations§
Source§impl<A: Clone + Clone + Eq> Clone for WeightedSupport<A>
impl<A: Clone + Clone + Eq> Clone for WeightedSupport<A>
Source§fn clone(&self) -> WeightedSupport<A>
fn clone(&self) -> WeightedSupport<A>
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 moreimpl<A: Clone + Eq> StructuralPartialEq for WeightedSupport<A>
Auto Trait Implementations§
impl<A> Freeze for WeightedSupport<A>where
A: Freeze,
impl<A> RefUnwindSafe for WeightedSupport<A>where
A: RefUnwindSafe,
impl<A> Send for WeightedSupport<A>where
A: Send,
impl<A> Sync for WeightedSupport<A>where
A: Sync,
impl<A> Unpin for WeightedSupport<A>where
A: Unpin,
impl<A> UnsafeUnpin for WeightedSupport<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for WeightedSupport<A>where
A: 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