Enum symbolic_expressions::Sexp [−][src]
Expand description
a symbolic-expression structure Can be a string or a list or nothing
String
shape: hello
List
shape: (…)
`Empty shape:
Variants
String(String)
Tuple Fields
0: String
plain String symbolic-expression
List(Vec<Sexp>)
list symbolic-expression
Empty
empty, trivial symbolic-expression
Implementations
👎 Deprecated since 4.0.0: please use Sexp::default()
instead
please use Sexp::default()
instead
create an empty symbolic-expression
👎 Deprecated since 4.0.3: please use .into()
instead
please use .into()
instead
create a String type symbolic-expression
👎 Deprecated since 4.0.3: please use .into()
instead
please use .into()
instead
create a list type symbolic-expression
create a list type symbolic-expression where the first element of the list is a string that indicates the name, the remainder is filled in via the provided fill function
shape: (name …)
👎 Deprecated since 4.0.3: please use .into()
instead
please use .into()
instead
create a list type symbolic-expression where the first element of the list is a string that indicates the name
👎 Deprecated since 4.0.5: please use .into()
on a tuple instead
please use .into()
on a tuple instead
create a list type symbolic-expression where the first element of the list is a string that indicates the name, and the second is another symbolic-expression created via the IntoSexp trait
if the expression is a list, extract the Vec<Sexp>
from it and swap it with Empty
if the expression is a String
, take it out and swap it with Empty
access the symbolic-expression as if it is a List
access the symbolic-expression as if it is an &String
access the symbolic-expression as if it is a String
access the symbolic-expression as if it is a String that is a f64
access the symbolic-expression as if it is a String that is an i64
access the symbolic-expression as if it is a List assuming the first element is a String and return that
👎 Deprecated since 4.1.4: please use iteratom::IterAtom::new
instead
please use iteratom::IterAtom::new
instead
access the symbolic-expression as if it is a named List where the name is provided and returns the remaining elements after the name as a slice
access the symbolic-expression as if it is a named List with two elements where the name is provided and returns the next element in the list
as named_value but converted to i64
as named_value but converted to f64
as named_value but converted to &String
as named_value but converted to String
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sexp
impl UnwindSafe for Sexp
Blanket Implementations
Mutably borrows from an owned value. Read more