pub struct SyntaxTheme { /* private fields */ }Expand description
Colours for each Kind of token.
Implementations§
Source§impl SyntaxTheme
impl SyntaxTheme
Sourcepub fn from_tokens(t: &Tokens) -> SyntaxTheme
pub fn from_tokens(t: &Tokens) -> SyntaxTheme
A theme derived from the design tokens (accent, status and text colours), so it follows light and dark mode and any brand accent.
Trait Implementations§
Source§impl Clone for SyntaxTheme
impl Clone for SyntaxTheme
Source§impl Debug for SyntaxTheme
impl Debug for SyntaxTheme
Source§impl PartialEq for SyntaxTheme
impl PartialEq for SyntaxTheme
impl StructuralPartialEq for SyntaxTheme
Auto Trait Implementations§
impl Forget for SyntaxTheme
impl Freeze for SyntaxTheme
impl Move for SyntaxTheme
impl RefUnwindSafe for SyntaxTheme
impl Send for SyntaxTheme
impl Sync for SyntaxTheme
impl Unpin for SyntaxTheme
impl UnsafeUnpin for SyntaxTheme
impl UnwindSafe for SyntaxTheme
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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