pub enum Kind<'a> {
Int(&'a Integer),
Rat(&'a Rational),
Float(f64),
Sym(&'a str),
Fn {
head: &'a str,
args: &'a [u32],
},
Pow {
base: u32,
exp: u32,
},
Mul(&'a [u32]),
Add(&'a [u32]),
}Expand description
节点的只读视图。复合节点给子节点索引,调用方继续经 Inspector 递归。
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Kind<'a>
impl<'a> RefUnwindSafe for Kind<'a>
impl<'a> Send for Kind<'a>
impl<'a> Sync for Kind<'a>
impl<'a> Unpin for Kind<'a>
impl<'a> UnsafeUnpin for Kind<'a>
impl<'a> UnwindSafe for Kind<'a>
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