pub struct ChromeSyntax { /* private fields */ }Expand description
A hikari_core::Theme that answers from a ChromePalette.
Carries the palette by value — it is 18 Rgbs, Copy, and the alternative
is a lifetime on a trait object the renderer holds across frames.
Implementations§
Source§impl ChromeSyntax
impl ChromeSyntax
pub const fn new(chrome: ChromePalette) -> Self
Sourcepub fn for_theme(theme: FleetTheme) -> Self
pub fn for_theme(theme: FleetTheme) -> Self
The syntax colours for theme.
Sourcepub const fn chrome(&self) -> &ChromePalette
pub const fn chrome(&self) -> &ChromePalette
The palette this resolves against.
Trait Implementations§
Source§impl Clone for ChromeSyntax
impl Clone for ChromeSyntax
Source§fn clone(&self) -> ChromeSyntax
fn clone(&self) -> ChromeSyntax
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 ChromeSyntax
Source§impl Debug for ChromeSyntax
impl Debug for ChromeSyntax
Auto Trait Implementations§
impl Freeze for ChromeSyntax
impl RefUnwindSafe for ChromeSyntax
impl Send for ChromeSyntax
impl Sync for ChromeSyntax
impl Unpin for ChromeSyntax
impl UnsafeUnpin for ChromeSyntax
impl UnwindSafe for ChromeSyntax
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