[−][src]Struct html_auto_p::Options
Options for the auto_p
function.
Fields
br: bool
Whether to convert remaining line-breaks to <br>
elements.
esc_pre: bool
Whether to escape the inner HTML in <pre>
elements. This is useful when the inner HTML needs to be formatted and be wrapped into other non-<pre>
elements.
remove_useless_newlines_in_pre: bool
Whether to remove useless newlines in the inner HTML of <pre>
elements. This is useful to beautifully form code into <pre>\n...\n</pre>
without worrying about the adjacent newlines' effects.
Implementations
impl Options
[src]
pub const fn new() -> Self
[src]
Create default options. (All false)
pub const fn br(self, br: bool) -> Self
[src]
Set whether to convert remaining line-breaks to <br>
elements.
pub const fn esc_pre(self, esc_pre: bool) -> Self
[src]
Set whether to escape the inner HTML in <pre>
elements.
pub const fn remove_useless_newlines_in_pre(
self,
remove_useless_newlines_in_pre: bool
) -> Self
[src]
self,
remove_useless_newlines_in_pre: bool
) -> Self
Set whether to remove useless newlines in the inner HTML of <pre>
elements.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,