[][src]Struct parse_wiki_text::Configuration

pub struct Configuration { /* fields omitted */ }

Configuration for the parser.

A configuration to correctly parse a real wiki can be created with Configuration::new. A configuration for testing and quick and dirty prototyping can be created with Default::default.

Methods

impl Configuration[src]

#[must_use]
pub fn new(source: &ConfigurationSource) -> Self
[src]

Allocates and returns a new configuration based on the given site specific configuration.

#[must_use]
pub fn parse<'a>(&self, wiki_text: &'a str) -> Output<'a>
[src]

Parses wiki text into structured data.

Trait Implementations

impl Default for Configuration[src]

fn default() -> Self[src]

Allocates and returns a configuration suitable for testing and quick and dirty prototyping. For correctly parsing an actual wiki, please get the correct site configuration for that particular wiki.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]