pub struct StrikeAim {
pub facings: NonZeroU32,
}Expand description
An aimed strike pattern’s facings (spec-0082 §5.7): facings turns
evenly spaced round the vertical axis through the mark, the first being the
assembly’s declared facing. Every on_land box is written for that first
facing; the compiler turns it to each of the others and proves every facing
a player in while_in can draw (DW0938, judged per facing). Which facing
a blow takes is chosen at run time among the proven ones; nothing about
where it lands is computed there.
Fields§
§facings: NonZeroU32How many facings, evenly spaced: 4 is a quarter turn apart, 8 an eighth, 16 a sixteenth. At least 1 (1 is the declared facing alone).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StrikeAim
impl<'de> Deserialize<'de> for StrikeAim
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for StrikeAim
impl JsonSchema for StrikeAim
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for StrikeAim
Auto Trait Implementations§
impl Freeze for StrikeAim
impl RefUnwindSafe for StrikeAim
impl Send for StrikeAim
impl Sync for StrikeAim
impl Unpin for StrikeAim
impl UnsafeUnpin for StrikeAim
impl UnwindSafe for StrikeAim
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