Enum symbolic_expressions::Sexp [] [src]

pub enum Sexp {
    String(String),
    List(Vec<Sexp>),
    Empty,
}

Variants

String(String)List(Vec<Sexp>)Empty

Methods

impl Sexp
[src]

fn new_empty() -> Sexp

fn new_string(s: &str) -> Sexp

fn new_list(v: Vec<Sexp>) -> Sexp

fn from<T: IntoSexp>(t: &T) -> Sexp

fn list(&self) -> Result<&Vec<Sexp>>

fn string(&self) -> Result<&String>

fn f(&self) -> Result<f64>

fn i(&self) -> Result<i64>

fn list_name(&self) -> Result<&String>

fn slice_atom(&self, s: &str) -> Result<&[Sexp]>

fn named_value(&self, s: &str) -> Result<&Sexp>

fn named_value_i(&self, s: &str) -> Result<i64>

fn named_value_f(&self, s: &str) -> Result<f64>

fn named_value_string(&self, s: &str) -> Result<&String>

fn slice_atom_num(&self, s: &str, num: usize) -> Result<&[Sexp]>

Trait Implementations

impl Clone for Sexp
[src]

fn clone(&self) -> Sexp

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Sexp
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Sexp
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.