Enum BossBarOverlay
#[non_exhaustive]pub enum BossBarOverlay {
Progress,
Notched6,
Notched10,
Notched12,
Notched20,
}Expand description
BossEvent.BossBarOverlay.
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.
Progress
Progress.
Notched6
Notched6.
Notched10
Notched10.
Notched12
Notched12.
Notched20
Notched20.
Implementations§
§impl BossBarOverlay
impl BossBarOverlay
pub const ALL: [BossBarOverlay; 5]
pub const ALL: [BossBarOverlay; 5]
Every overlay, in ordinal order.
pub fn name(self) -> &'static str
pub fn name(self) -> &'static str
BossBarOverlay.getName: progress, notched_6, notched_10,
notched_12 or notched_20.
pub fn from_name(name: &str) -> Option<BossBarOverlay>
pub fn from_name(name: &str) -> Option<BossBarOverlay>
The overlay with that name, or None for one vanilla doesn’t have.
Trait Implementations§
§impl Clone for BossBarOverlay
impl Clone for BossBarOverlay
§fn clone(&self) -> BossBarOverlay
fn clone(&self) -> BossBarOverlay
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 BossBarOverlay
§impl Debug for BossBarOverlay
impl Debug for BossBarOverlay
impl Eq for BossBarOverlay
§impl Hash for BossBarOverlay
impl Hash for BossBarOverlay
§impl PartialEq for BossBarOverlay
impl PartialEq for BossBarOverlay
impl StructuralPartialEq for BossBarOverlay
Auto Trait Implementations§
impl Freeze for BossBarOverlay
impl RefUnwindSafe for BossBarOverlay
impl Send for BossBarOverlay
impl Sync for BossBarOverlay
impl Unpin for BossBarOverlay
impl UnsafeUnpin for BossBarOverlay
impl UnwindSafe for BossBarOverlay
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