Struct gambit_parser::Terminal
source · [−]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
sourceimpl<'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
sourceimpl<'a> PartialEq<Terminal<'a>> for Terminal<'a>
impl<'a> PartialEq<Terminal<'a>> for Terminal<'a>
impl<'a> Eq for Terminal<'a>
impl<'a> StructuralEq for Terminal<'a>
impl<'a> StructuralPartialEq for Terminal<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more