pub struct MoonPhase(/* private fields */);Expand description
One of the moon’s eight phases, held as its index (0 = full-moon, the
phase of day 0). Written in a document as the pinned game’s own name,
kebab-cased; the names are DATA, read from the vendored moon.json, never an
enum this engine authors (spec-0039: vanilla registry values are data).
Implementations§
Trait Implementations§
impl Copy for MoonPhase
Source§impl<'de> Deserialize<'de> for MoonPhase
impl<'de> Deserialize<'de> for MoonPhase
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<MoonPhase, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<MoonPhase, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MoonPhase
Source§impl JsonSchema for MoonPhase
impl JsonSchema for MoonPhase
Source§fn json_schema(_: &mut SchemaGenerator) -> Schema
fn json_schema(_: &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 moreSource§impl Ord for MoonPhase
impl Ord for MoonPhase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MoonPhase
impl PartialOrd for MoonPhase
impl StructuralPartialEq for MoonPhase
Auto Trait Implementations§
impl Freeze for MoonPhase
impl RefUnwindSafe for MoonPhase
impl Send for MoonPhase
impl Sync for MoonPhase
impl Unpin for MoonPhase
impl UnsafeUnpin for MoonPhase
impl UnwindSafe for MoonPhase
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