pub enum Node {
I(i64),
F(f64),
C(char),
X(Cow<'static, str>),
A(Vec<Node>),
O(Vec<Node>),
P(Vec<Node>),
T(Vec<(Node, Node)>),
S(Box<Node>),
M {
verb: Cow<'static, str>,
rhs: Option<Box<Node>>,
},
D {
verb: Cow<'static, str>,
lhs: Box<Node>,
rhs: Option<Box<Node>>,
},
}Variants§
I(i64)
F(f64)
C(char)
X(Cow<'static, str>)
A(Vec<Node>)
O(Vec<Node>)
P(Vec<Node>)
T(Vec<(Node, Node)>)
S(Box<Node>)
M
D
Implementations§
Source§impl Node
impl Node
pub fn monad(v: &str, x: Node) -> Self
pub fn dyad(v: &str, x: Node, y: Node) -> Self
pub fn empty() -> Self
pub fn from_str<T>(x: T) -> Self
pub fn is_c(&self) -> bool
pub fn is_a(&self) -> bool
pub fn is_i(&self) -> bool
pub fn is_x(&self) -> bool
pub fn is_m(&self) -> bool
pub fn is_str(&self) -> bool
pub fn is_mat(&self) -> bool
pub fn is_gets(&self) -> bool
pub fn un_gets(&self) -> (Node, Node)
pub fn un_c(&self) -> char
pub fn un_i(&self) -> i64
pub fn un_a(&self) -> Vec<Node>
pub fn un_str(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more