pub enum ScalarTheme {
Default,
Alternate,
Moon,
Purple,
Solarized,
BluePlanet,
Saturn,
Kepler,
Mars,
DeepSpace,
None,
}Expand description
Visual theme presets recognized by Scalar.
The string each variant serializes to matches Scalar’s documented theme keys. New themes published upstream can be added without a breaking change.
Variants§
Default
The Scalar default theme.
Alternate
Alternate light theme.
Moon
Moon (low-contrast dark) theme.
Purple
Purple accent theme.
Solarized
Solarized theme.
BluePlanet
Blue Planet theme.
Saturn
Saturn theme.
Kepler
Kepler theme.
Mars
Mars theme.
DeepSpace
Deep Space theme.
None
No theme — render with Scalar’s bare defaults.
Trait Implementations§
Source§impl Clone for ScalarTheme
impl Clone for ScalarTheme
Source§fn clone(&self) -> ScalarTheme
fn clone(&self) -> ScalarTheme
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarTheme
impl Debug for ScalarTheme
Source§impl PartialEq for ScalarTheme
impl PartialEq for ScalarTheme
Source§impl Serialize for ScalarTheme
impl Serialize for ScalarTheme
impl Copy for ScalarTheme
impl Eq for ScalarTheme
impl StructuralPartialEq for ScalarTheme
Auto Trait Implementations§
impl Freeze for ScalarTheme
impl RefUnwindSafe for ScalarTheme
impl Send for ScalarTheme
impl Sync for ScalarTheme
impl Unpin for ScalarTheme
impl UnsafeUnpin for ScalarTheme
impl UnwindSafe for ScalarTheme
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.