pub struct Terminal<'a, 'g> { /* private fields */ }Expand description
A terminal node represents the end of a game
Terminal nodes simply assign payoffs to every player in the game
Implementations§
Source§impl<'a, 'g> Terminal<'a, 'g>
impl<'a, 'g> Terminal<'a, 'g>
Sourcepub fn name(self) -> &'a EscapedStr
pub fn name(self) -> &'a EscapedStr
The name of this node
Sourcepub fn outcome_name(self) -> Option<&'a EscapedStr>
pub fn outcome_name(self) -> Option<&'a EscapedStr>
The name of this outcome
None for the null (0) outcome or an outcome with no name.
Sourcepub fn outcome_payoffs(self) -> Option<&'g [BigRational]>
pub fn outcome_payoffs(self) -> Option<&'g [BigRational]>
The payoffs to every player
None only for the null (0) outcome — a terminal with no outcome attached.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'g> Freeze for Terminal<'a, 'g>
impl<'a, 'g> RefUnwindSafe for Terminal<'a, 'g>
impl<'a, 'g> Send for Terminal<'a, 'g>
impl<'a, 'g> Sync for Terminal<'a, 'g>
impl<'a, 'g> Unpin for Terminal<'a, 'g>
impl<'a, 'g> UnsafeUnpin for Terminal<'a, 'g>
impl<'a, 'g> UnwindSafe for Terminal<'a, 'g>
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