pub enum DocTheme {
Default,
Dark,
HighContrast,
}Expand description
Documentation theme variants
Variants§
Default
Rustdoc default light theme
Dark
Dark theme (ayu)
HighContrast
High-contrast for accessibility
Implementations§
Source§impl DocTheme
impl DocTheme
Sourcepub fn flag_value(self) -> &'static str
pub fn flag_value(self) -> &'static str
Return the rustdoc CLI flag value for this theme.
Trait Implementations§
impl Copy for DocTheme
impl Eq for DocTheme
impl StructuralPartialEq for DocTheme
Auto Trait Implementations§
impl Freeze for DocTheme
impl RefUnwindSafe for DocTheme
impl Send for DocTheme
impl Sync for DocTheme
impl Unpin for DocTheme
impl UnwindSafe for DocTheme
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)