pub struct Metadata {
pub redcode: Option<String>,
pub name: Option<String>,
pub author: Option<String>,
pub date: Option<String>,
pub version: Option<String>,
pub strategy: Option<String>,
pub assertion: Option<String>,
}
Expand description
Metadata about a Redcode program that is stored in the comments.
Fields§
§redcode: Option<String>
The Redcode standard for this warrior (e.g. “94”).
name: Option<String>
The name of this warrior.
The author of this warrior.
date: Option<String>
The date when this warrior was written.
version: Option<String>
The version of this warrior.
strategy: Option<String>
A description of the warrior’s strategy
assertion: Option<String>
An assertion for this warrior to ensure compilation.
Implementations§
Trait Implementations§
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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