pub enum WriteMode {
Minimal,
Faithful,
Exhaustive,
}Expand description
How much of each shared infoset and outcome to write when serializing a game.
Both are declared once and referenced by id, so a given node may or may not repeat the block.
This selects which nodes write it. See ExtensiveFormGame::display.
Variants§
Minimal
Declare each infoset and outcome only on its first appearance; reference it by id after.
Faithful
Reproduce the parsed input: write a block exactly where the source node wrote one.
Exhaustive
Write every infoset and outcome in full on every node, as Gambit’s own writer does.
Trait Implementations§
impl Copy for WriteMode
impl Eq for WriteMode
impl StructuralPartialEq for WriteMode
Auto Trait Implementations§
impl Freeze for WriteMode
impl RefUnwindSafe for WriteMode
impl Send for WriteMode
impl Sync for WriteMode
impl Unpin for WriteMode
impl UnsafeUnpin for WriteMode
impl UnwindSafe for WriteMode
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