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

Required Methods

regular expression for matching this struct

number of used capture groups.

create instance of function from captures with given offset

Implementations on Foreign Types

Implementors