Struct mdbook::config::Playground
source · pub struct Playground {
pub editable: bool,
pub copyable: bool,
pub copy_js: bool,
pub line_numbers: bool,
pub runnable: bool,
}Expand description
Configuration for tweaking how the the HTML renderer handles the playground.
Fields§
§editable: boolShould playground snippets be editable? Default: false.
copyable: boolDisplay the copy button. Default: true.
copy_js: boolCopy JavaScript files for the editor to the output directory?
Default: true.
line_numbers: boolDisplay line numbers on playground snippets. Default: false.
runnable: boolDisplay the run button. Default: true
Trait Implementations§
source§impl Clone for Playground
impl Clone for Playground
source§fn clone(&self) -> Playground
fn clone(&self) -> Playground
Returns a copy 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 Playground
impl Debug for Playground
source§impl Default for Playground
impl Default for Playground
source§fn default() -> Playground
fn default() -> Playground
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Playgroundwhere
Playground: Default,
impl<'de> Deserialize<'de> for Playgroundwhere
Playground: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Playground
impl PartialEq for Playground
source§fn eq(&self, other: &Playground) -> bool
fn eq(&self, other: &Playground) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for Playground
impl Serialize for Playground
impl StructuralPartialEq for Playground
Auto Trait Implementations§
impl Freeze for Playground
impl RefUnwindSafe for Playground
impl Send for Playground
impl Sync for Playground
impl Unpin for Playground
impl UnwindSafe for Playground
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