[][src]Trait reformation::Reformation

pub trait Reformation<'t>: Sized {
    pub fn regex_str() -> &'static str;
pub fn captures_count() -> usize;
pub fn from_captures<'a>(
        c: &Captures<'a, 't>,
        offset: usize
    ) -> Result<Self, Error>;
pub fn parse(input: &'t str) -> Result<Self, Error>; }

Required methods

pub fn regex_str() -> &'static str[src]

regular expression for matching this struct

pub fn captures_count() -> usize[src]

number of used capture groups.

pub fn from_captures<'a>(
    c: &Captures<'a, 't>,
    offset: usize
) -> Result<Self, Error>
[src]

create instance of function from captures with given offset

pub fn parse(input: &'t str) -> Result<Self, Error>[src]

parse struct from str

Loading content...

Implementations on Foreign Types

impl<'t> Reformation<'t> for u8[src]

impl<'t> Reformation<'t> for u16[src]

impl<'t> Reformation<'t> for u32[src]

impl<'t> Reformation<'t> for u64[src]

impl<'t> Reformation<'t> for u128[src]

impl<'t> Reformation<'t> for usize[src]

impl<'t> Reformation<'t> for i8[src]

impl<'t> Reformation<'t> for i16[src]

impl<'t> Reformation<'t> for i32[src]

impl<'t> Reformation<'t> for i64[src]

impl<'t> Reformation<'t> for i128[src]

impl<'t> Reformation<'t> for isize[src]

impl<'t> Reformation<'t> for f32[src]

impl<'t> Reformation<'t> for f64[src]

impl<'t> Reformation<'t> for String[src]

impl<'t> Reformation<'t> for char[src]

impl<'t, T: Reformation<'t>> Reformation<'t> for Option<T>[src]

impl<'t> Reformation<'t> for &'t str[src]

Loading content...

Implementors

Loading content...