#[non_exhaustive]pub struct PlayedTry {
pub tried: Tried,
pub commands: u32,
pub record: Option<String>,
}Expand description
One try as play_try played it: what the checks read, how many
commands were applied, and the entrant’s record of it, if it keeps one
(Entrant::record). Build it with PlayedTry::new (ADR-0039).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tried: TriedWhat the checks read.
commands: u32The commands applied.
record: Option<String>Its record, in the game’s record format, for replay.
Implementations§
Trait Implementations§
impl Eq for PlayedTry
impl StructuralPartialEq for PlayedTry
Auto Trait Implementations§
impl Freeze for PlayedTry
impl RefUnwindSafe for PlayedTry
impl Send for PlayedTry
impl Sync for PlayedTry
impl Unpin for PlayedTry
impl UnsafeUnpin for PlayedTry
impl UnwindSafe for PlayedTry
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