pub enum SyntaxTheme {
Dark,
Light,
}Expand description
A built-in color theme for syntax highlighting.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SyntaxTheme
impl Clone for SyntaxTheme
Source§fn clone(&self) -> SyntaxTheme
fn clone(&self) -> SyntaxTheme
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 SyntaxTheme
Source§impl Debug for SyntaxTheme
impl Debug for SyntaxTheme
Source§impl Default for SyntaxTheme
impl Default for SyntaxTheme
Source§fn default() -> SyntaxTheme
fn default() -> SyntaxTheme
Returns the “default value” for a type. Read more
impl Eq for SyntaxTheme
Source§impl PartialEq for SyntaxTheme
impl PartialEq for SyntaxTheme
Source§fn eq(&self, other: &SyntaxTheme) -> bool
fn eq(&self, other: &SyntaxTheme) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SyntaxTheme
Auto Trait Implementations§
impl Freeze 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