[−][src]Trait sexpy::Sexpy
The trait that is automatically derived from a type definition. You should not need to implement this manually unless you are writing a parser for some primitive type. Parsers for several common primitive types have already been defined
Required methods
fn sexp_parse<'a>(input: &'a str) -> IResult<&'a str, Self, SexpyError<&'a str>> where
Self: Sized,
Self: Sized,
The parser for this trait. Should be automatically derivable from a type definition in most cases
Provided methods
fn parse(input: &str) -> Result<Self, String> where
Self: Sized,
Self: Sized,
Takes a string and tries calling the parser for this trait on it, converting
any errors into a string using SexpyError::convert_error
fn parse_verbose(input: &str) -> Result<Self, String> where
Self: Sized,
Self: Sized,
Takes a string and tries calling the parser for this trait on it, converting
any errors into a string using SexpyError::convert_error_verbose
Implementations on Foreign Types
impl Sexpy for String
[src]
Parses a 'word', which is anything that starts with an upper or lowercase ASCII
character (a-z, A-Z) and ends in a space or one of the following characters: ()[]{}\;
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl Sexpy for u64
[src]
Parses unsigned 64 bit integers
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl Sexpy for u32
[src]
Parses unsigned 32 bit integers
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl Sexpy for i64
[src]
Parses signed 64 bit integers
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl Sexpy for i32
[src]
Parses signed 32 bit integers
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl<T: Sexpy> Sexpy for Option<T>
[src]
Optionally parses T
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl<T: Sexpy> Sexpy for Vec<T>
[src]
Parses 0 or more instances of T
seperated by whitespace
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl<T: Sexpy> Sexpy for Box<T>
[src]
Just parses T
but puts the result in a Box<T>
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,
impl<T: Sexpy> Sexpy for Rc<T>
[src]
Just parses T
but puts the result in an Rc<T>
fn sexp_parse(input: &str) -> IResult<&str, Self, SexpyError<&str>> where
Self: Sized,
[src]
Self: Sized,