pub enum Species {
Egg,
Crab,
Snake,
Owl,
Gopher,
Whale,
Fox,
Dragon,
}Variants§
Implementations§
Source§impl Species
impl Species
pub fn label(&self) -> &'static str
Sourcepub fn element_name(&self) -> &'static str
pub fn element_name(&self) -> &'static str
The element/type skin for the one mascot. A user’s dominant language maps to an element that tints the sprite and titles the creature — the body silhouette is always the same iconic Pixel Sprite.
Sourcepub fn element_color(&self) -> &'static str
pub fn element_color(&self) -> &'static str
Intrinsic element colour as a raw 256-colour ANSI foreground escape. Distinct from the UI theme: fire is always orange, poison always green.
Sourcepub fn element_glyph(&self) -> &'static str
pub fn element_glyph(&self) -> &'static str
A single width-1 rune used as the element badge in the nameplate.
pub fn from_commands(commands: &HashMap<String, CommandStats>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Species
impl<'de> Deserialize<'de> for Species
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
impl StructuralPartialEq for Species
Auto Trait Implementations§
impl Freeze for Species
impl RefUnwindSafe for Species
impl Send for Species
impl Sync for Species
impl Unpin for Species
impl UnsafeUnpin for Species
impl UnwindSafe for Species
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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