[−][src]Trait reformation::Reformation
Required methods
fn regex_str() -> &'static str
regular expression for matching this struct
fn captures_count() -> usize
number of used capture groups.
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
create instance of function from captures with given offset
fn parse(input: &'t str) -> Result<Self, Error>
parse struct from str
default implementation is not zero-cost abstraction, which must be kept in mind when implementing trait by hand. (This version uses generic_static to handle lazy initialization, which imply some extra costs, but for non-generic types it can be implemented with lazy_static!)
Implementations on Foreign Types
impl<'t> Reformation<'t> for u8
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for u16
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for u32
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for u64
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for u128
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for usize
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for i8
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for i16
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for i32
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for i64
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for i128
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for isize
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for f32
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for f64
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for String
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for char
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(c: &Captures<'a, 't>, offset: usize) -> Result<Self, Error>
[src]
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t, T: Reformation<'t>> Reformation<'t> for Option<T>
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(
captures: &Captures<'a, 't>,
offset: usize
) -> Result<Self, Error>
[src]
captures: &Captures<'a, 't>,
offset: usize
) -> Result<Self, Error>
fn parse(input: &'t str) -> Result<Self, Error>
[src]
impl<'t> Reformation<'t> for &'t str
[src]
fn regex_str() -> &'static str
[src]
fn captures_count() -> usize
[src]
fn from_captures<'a>(
captures: &Captures<'a, 't>,
offset: usize
) -> Result<Self, Error>
[src]
captures: &Captures<'a, 't>,
offset: usize
) -> Result<Self, Error>