[−][src]Struct dprint_plugin_markdown::configuration::ConfigurationBuilder
Markdown formatting configuration builder.
Example
use dprint_plugin_markdown::configuration::*; let config = ConfigurationBuilder::new() .line_width(80) .build();
Methods
impl ConfigurationBuilder
[src]
pub fn new() -> ConfigurationBuilder
[src]
Constructs a new configuration builder.
pub fn build(&self) -> Configuration
[src]
Gets the final configuration that can be used to format a file.
pub fn global_config(&mut self, global_config: GlobalConfiguration) -> &mut Self
[src]
Set the global configuration.
pub fn line_width(&mut self, value: u32) -> &mut Self
[src]
The width of a line the printer will try to stay under. Note that the printer may exceed this width in certain cases. Default: 80
pub fn use_tabs(&mut self, value: bool) -> &mut Self
[src]
Whether to use tabs (true) or spaces (false). Default: false
pub fn indent_width(&mut self, value: u8) -> &mut Self
[src]
The number of columns for an indent. Default: 4
pub fn new_line_kind(&mut self, value: NewLineKind) -> &mut Self
[src]
The kind of newline to use.
Default: NewLineKind::Auto
Auto Trait Implementations
impl RefUnwindSafe for ConfigurationBuilder
impl Send for ConfigurationBuilder
impl Sync for ConfigurationBuilder
impl Unpin for ConfigurationBuilder
impl UnwindSafe for ConfigurationBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,