[][src]Struct rupantor::parser::PhoneticParser

pub struct PhoneticParser { /* fields omitted */ }

Parses and converts text into Bengali according to given grammar.

Implementations

impl PhoneticParser[src]

pub fn new(rule: &Value) -> PhoneticParser[src]

Creates a new PhoneticParser instance from the given Json value. The Json value must need to be a Json Object containing the required values, otherwise a panic would occur.

pub fn convert(&self, input: &str) -> String[src]

Converts the given input string into Bengali according to the grammar.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.