pub struct Terminal<'a> { /* private fields */ }
Expand description
A terminal node represents the end of a game
Terminal nodes simple assign payoffs to every player in the game
Implementations§
Source§impl<'a> Terminal<'a>
impl<'a> Terminal<'a>
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
Note that if omitted it may be specified on a different node with the same outcome.
Sourcepub fn outcome_payoffs(&self) -> &[BigRational] ⓘ
pub fn outcome_payoffs(&self) -> &[BigRational] ⓘ
The payoffs to every player
Trait Implementations§
impl<'a> Eq for Terminal<'a>
impl<'a> StructuralPartialEq for Terminal<'a>
Auto Trait Implementations§
impl<'a> Freeze for Terminal<'a>
impl<'a> RefUnwindSafe for Terminal<'a>
impl<'a> Send for Terminal<'a>
impl<'a> Sync for Terminal<'a>
impl<'a> Unpin for Terminal<'a>
impl<'a> UnwindSafe for Terminal<'a>
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