Struct mdbook::config::playpenconfig::PlaypenConfig
[−]
[src]
pub struct PlaypenConfig { /* fields omitted */ }
Methods
impl PlaypenConfig
[src]
fn new<T: Into<PathBuf>>(root: T) -> Self
Creates a new PlaypenConfig
for playpen configuration.
let editor = PathBuf::from("root/editor"); let config = PlaypenConfig::new(PathBuf::from("root")); assert_eq!(config.get_editor(), &editor); assert_eq!(config.is_editable(), false);
fn fill_from_tomlconfig<T: Into<PathBuf>>(
&mut self,
root: T,
tomlplaypenconfig: TomlPlaypenConfig
) -> &mut Self
&mut self,
root: T,
tomlplaypenconfig: TomlPlaypenConfig
) -> &mut Self
fn is_editable(&self) -> bool
fn get_editor(&self) -> &Path
fn set_editor<T: Into<PathBuf>>(&mut self, root: T, editor: T) -> &mut Self
Trait Implementations
impl Debug for PlaypenConfig
[src]
impl Clone for PlaypenConfig
[src]
fn clone(&self) -> PlaypenConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for PlaypenConfig
[src]
fn eq(&self, __arg_0: &PlaypenConfig) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PlaypenConfig) -> bool
This method tests for !=
.