pub struct ActionSpec {
pub action_encoding_version: u32,
pub action_space_size: usize,
pub pass_action_id: usize,
pub attack_type_encoding: Vec<(&'static str, i32)>,
pub constants: Vec<(&'static str, usize)>,
pub families: Vec<ActionFamilySpec>,
pub notes: Vec<&'static str>,
}Expand description
Full action specification.
Fields§
§action_encoding_version: u32Action encoding version.
action_space_size: usizeTotal action space size.
pass_action_id: usizeId of the pass action.
attack_type_encoding: Vec<(&'static str, i32)>Encoding of attack types.
constants: Vec<(&'static str, usize)>Named constants included in the spec.
families: Vec<ActionFamilySpec>Action families.
notes: Vec<&'static str>Additional notes.
Trait Implementations§
Source§impl Clone for ActionSpec
impl Clone for ActionSpec
Source§fn clone(&self) -> ActionSpec
fn clone(&self) -> ActionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActionSpec
impl Debug for ActionSpec
Auto Trait Implementations§
impl Freeze for ActionSpec
impl RefUnwindSafe for ActionSpec
impl Send for ActionSpec
impl Sync for ActionSpec
impl Unpin for ActionSpec
impl UnwindSafe for ActionSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more