Enum BossBarColor
#[non_exhaustive]pub enum BossBarColor {
Pink,
Blue,
Red,
Green,
Yellow,
Purple,
White,
}Expand description
BossEvent.BossBarColor.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Pink
A pink bar.
Blue
A blue bar.
Red
A red bar.
Green
A green bar.
Yellow
A yellow bar.
Purple
A purple bar.
White
A white bar.
Implementations§
§impl BossBarColor
impl BossBarColor
pub const ALL: [BossBarColor; 7]
pub const ALL: [BossBarColor; 7]
Every color, in ordinal order.
pub fn name(self) -> &'static str
pub fn name(self) -> &'static str
BossBarColor.getName: pink, blue, red, green, yellow,
purple or white.
pub fn from_name(name: &str) -> Option<BossBarColor>
pub fn from_name(name: &str) -> Option<BossBarColor>
The color with that name, or None for one vanilla doesn’t have.
Trait Implementations§
§impl Clone for BossBarColor
impl Clone for BossBarColor
§fn clone(&self) -> BossBarColor
fn clone(&self) -> BossBarColor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BossBarColor
§impl Debug for BossBarColor
impl Debug for BossBarColor
impl Eq for BossBarColor
§impl Hash for BossBarColor
impl Hash for BossBarColor
§impl PartialEq for BossBarColor
impl PartialEq for BossBarColor
impl StructuralPartialEq for BossBarColor
Auto Trait Implementations§
impl Freeze for BossBarColor
impl RefUnwindSafe for BossBarColor
impl Send for BossBarColor
impl Sync for BossBarColor
impl Unpin for BossBarColor
impl UnsafeUnpin for BossBarColor
impl UnwindSafe for BossBarColor
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