Enum boldline::Marking
[−]
[src]
pub enum Marking { ANSIBold, MarkdownBold, BBCodeBold, HTMLBold, Custom(bool, String, String), }
The markup to use
You can use Marking::custom() to create a custom type if none of these strike your fancy.
Variants
ANSIBold
ANSI Terminal Escapes
MarkdownBold
Markdown (**c**)
BBCodeBold
BBCode [b]c[/b]
HTMLBold
HTML <b>c</b>
Custom(bool, String, String)
A custom type. See Marking::custom()
for more info
Methods
impl Marking
[src]
fn custom(dedupe: bool, prefix: String, suffix: String) -> Self
Creates a custom type to pass to boldline().
The arguments are dedupe, prefix, and suffix.
Dedupe refers to whether or not it should automatically prevent suffixprefix when using the Pattern::Cross.
dedupe true: bol<b>dl</b>ine
; dedupe false: bol<b>d</b><b>l</b>ine
.
Trait Implementations
impl Debug for Marking
[src]
impl PartialEq for Marking
[src]
fn eq(&self, __arg_0: &Marking) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Marking) -> bool
This method tests for !=
.
impl Eq for Marking
[src]
impl Clone for Marking
[src]
fn clone(&self) -> Marking
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