pub struct Colors { /* private fields */ }
Expand description
Current ArcDPS color settings.
Use the associated functions to access individual colors.
This holds pointers to color information in memory until dropped.
Implementations§
source§impl Colors
impl Colors
sourcepub fn prof_base(&self, prof: Profession) -> Option<Color>
pub fn prof_base(&self, prof: Profession) -> Option<Color>
Returns the base color for a specific Profession
.
This will return None
if ArcDPS did not yield the requested color when the Colors
struct was retrieved.
sourcepub fn prof_highlight(&self, prof: Profession) -> Option<Color>
pub fn prof_highlight(&self, prof: Profession) -> Option<Color>
Returns the highlight color for a specific Profession
.
This will return None
if ArcDPS did not yield the requested color when the Colors
struct was retrieved.
Trait Implementations§
source§impl PartialEq for Colors
impl PartialEq for Colors
impl Eq for Colors
impl StructuralPartialEq for Colors
Auto Trait Implementations§
impl Freeze for Colors
impl RefUnwindSafe for Colors
impl !Send for Colors
impl !Sync for Colors
impl Unpin for Colors
impl UnwindSafe for Colors
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