pub trait ParseFrom<I, E = Error<I>>where
Self: Sized,{
// Required method
fn parse(input: I) -> IResult<I, Self, E>;
}
Expand description
A trait for types that can be parsed from the given input.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for bool
Support reading the words “true” or “false” from the input and interpreting them as boolean values.
impl<I, E: ParseError<I>> ParseFrom<I, E> for bool
Support reading the words “true” or “false” from the input and interpreting them as boolean values.
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for char
Support reading a single character from the input.
impl<I, E: ParseError<I>> ParseFrom<I, E> for char
Support reading a single character from the input.
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for f32
impl<I, E: ParseError<I>> ParseFrom<I, E> for f32
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for f64
impl<I, E: ParseError<I>> ParseFrom<I, E> for f64
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for i8
impl<I, E: ParseError<I>> ParseFrom<I, E> for i8
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for i16
impl<I, E: ParseError<I>> ParseFrom<I, E> for i16
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for i32
impl<I, E: ParseError<I>> ParseFrom<I, E> for i32
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for i64
impl<I, E: ParseError<I>> ParseFrom<I, E> for i64
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for i128
impl<I, E: ParseError<I>> ParseFrom<I, E> for i128
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for u8
Support reading a single byte from the input. This is NOT a parsed number, but the raw byte value.
impl<I, E: ParseError<I>> ParseFrom<I, E> for u8
Support reading a single byte from the input. This is NOT a parsed number, but the raw byte value.
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for u16
impl<I, E: ParseError<I>> ParseFrom<I, E> for u16
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for u32
impl<I, E: ParseError<I>> ParseFrom<I, E> for u32
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for u64
impl<I, E: ParseError<I>> ParseFrom<I, E> for u64
Source§impl<I, E: ParseError<I>> ParseFrom<I, E> for u128
impl<I, E: ParseError<I>> ParseFrom<I, E> for u128
Source§impl<I, E: ParseError<I>, K, V: ParseFrom<I, E>, S> ParseFrom<I, E> for HashMap<K, V, S>
Support parsing a HashMap of ParseFrom types from the input. This uses the line_ending parser
to separate the items and the “=” sign to separate the key and value.
impl<I, E: ParseError<I>, K, V: ParseFrom<I, E>, S> ParseFrom<I, E> for HashMap<K, V, S>
Support parsing a HashMap of ParseFrom types from the input. This uses the line_ending parser to separate the items and the “=” sign to separate the key and value.
Source§impl<I, E: ParseError<I>, T, S> ParseFrom<I, E> for HashSet<T, S>
Support parsing a HashSet of ParseFrom types from the input. This uses the line_ending parser
to separate the items.
impl<I, E: ParseError<I>, T, S> ParseFrom<I, E> for HashSet<T, S>
Support parsing a HashSet of ParseFrom types from the input. This uses the line_ending parser to separate the items.
Source§impl<I, E: ParseError<I>, T: ParseFrom<I, E>> ParseFrom<I, E> for Vec<T>
Support parsing a vector of ParseFrom types from the input. This uses the line_ending parser
to separate the items.
impl<I, E: ParseError<I>, T: ParseFrom<I, E>> ParseFrom<I, E> for Vec<T>
Support parsing a vector of ParseFrom types from the input. This uses the line_ending parser to separate the items.