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: bool
Should playground snippets be editable? Default: false
.
copyable: bool
Display the copy button. Default: true
.
copy_js: bool
Copy JavaScript files for the editor to the output directory?
Default: true
.
line_numbers: bool
Display line numbers on playground snippets. Default: false
.
runnable: bool
Display the run button. Default: true
Trait Implementations
sourceimpl Clone for Playground
impl Clone for Playground
sourcefn clone(&self) -> Playground
fn clone(&self) -> Playground
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Playground
impl Debug for Playground
sourceimpl Default for Playground
impl Default for Playground
sourcefn default() -> Playground
fn default() -> Playground
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Playground where
Playground: Default,
impl<'de> Deserialize<'de> for Playground where
Playground: Default,
sourcefn 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
sourceimpl PartialEq<Playground> for Playground
impl PartialEq<Playground> for Playground
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Playground) -> bool
fn ne(&self, other: &Playground) -> bool
This method tests for !=
.
sourceimpl Serialize for Playground
impl Serialize for Playground
impl StructuralPartialEq for Playground
Auto Trait Implementations
impl RefUnwindSafe for Playground
impl Send for Playground
impl Sync for Playground
impl Unpin for Playground
impl UnwindSafe for Playground
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more