#[non_exhaustive]pub enum BuiltinCodeTheme {
Base16EightiesDark,
Base16MochaDark,
Base16OceanDark,
Base16OceanLight,
InspiredGitHub,
SolarizedDark,
SolarizedLight,
}Expand description
A syntax-highlighting theme bundled with tui-markdown.
Pass a variant directly to Options::code_theme, or convert it
into an owned CodeTheme.
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.
Base16EightiesDark
The dark Base16 Eighties theme.
Base16MochaDark
The dark Base16 Mocha theme.
Base16OceanDark
The default dark Base16 Ocean theme.
Base16OceanLight
The light Base16 Ocean theme.
InspiredGitHub
The light Inspired GitHub theme.
SolarizedDark
The dark Solarized theme.
SolarizedLight
The light Solarized theme.
Trait Implementations§
Source§impl Clone for BuiltinCodeTheme
impl Clone for BuiltinCodeTheme
Source§fn clone(&self) -> BuiltinCodeTheme
fn clone(&self) -> BuiltinCodeTheme
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 BuiltinCodeTheme
Source§impl Debug for BuiltinCodeTheme
impl Debug for BuiltinCodeTheme
Source§impl Default for BuiltinCodeTheme
impl Default for BuiltinCodeTheme
Source§fn default() -> BuiltinCodeTheme
fn default() -> BuiltinCodeTheme
Returns the “default value” for a type. Read more
impl Eq for BuiltinCodeTheme
Source§impl From<BuiltinCodeTheme> for CodeTheme
impl From<BuiltinCodeTheme> for CodeTheme
Source§fn from(theme: BuiltinCodeTheme) -> Self
fn from(theme: BuiltinCodeTheme) -> Self
Converts to this type from the input type.
Source§impl Hash for BuiltinCodeTheme
impl Hash for BuiltinCodeTheme
Source§impl PartialEq for BuiltinCodeTheme
impl PartialEq for BuiltinCodeTheme
impl StructuralPartialEq for BuiltinCodeTheme
Auto Trait Implementations§
impl Freeze for BuiltinCodeTheme
impl RefUnwindSafe for BuiltinCodeTheme
impl Send for BuiltinCodeTheme
impl Sync for BuiltinCodeTheme
impl Unpin for BuiltinCodeTheme
impl UnsafeUnpin for BuiltinCodeTheme
impl UnwindSafe for BuiltinCodeTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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