Enum boldline::Marking [] [src]

pub enum Marking {
    ANSIBold,
    MarkdownBold,
    BBCodeBold,
    HTMLBold,
    Custom(boolStringString),
}

The markup to use

You can use Marking::custom() to create a custom type if none of these strike your fancy.

Variants

ANSI Terminal Escapes

Markdown (**c**)

BBCode [b]c[/b]

HTML <b>c</b>

A custom type. See Marking::custom() for more info

Methods

impl Marking
[src]

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]

Formats the value using the given formatter.

impl PartialEq for Marking
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Marking
[src]

impl Clone for Marking
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more