pub enum SurfaceCommand {
Rewrite {
lhs: SurfacePattern,
rhs: RhsTerm,
when: Vec<SurfacePattern>,
subsume: bool,
ruleset: Option<String>,
},
Rule {
body: Vec<SurfacePattern>,
head: Vec<Action>,
ruleset: Option<String>,
},
Pass(Command),
}Expand description
Surface command — pattern-bearing commands use SurfacePattern,
everything else passes through as Command.
Variants§
Rewrite
Rule
Fields
§
body: Vec<SurfacePattern>Pass(Command)
Trait Implementations§
Source§impl Clone for SurfaceCommand
impl Clone for SurfaceCommand
Source§impl Debug for SurfaceCommand
impl Debug for SurfaceCommand
impl Eq for SurfaceCommand
Source§impl PartialEq for SurfaceCommand
impl PartialEq for SurfaceCommand
impl StructuralPartialEq for SurfaceCommand
Auto Trait Implementations§
impl Freeze for SurfaceCommand
impl RefUnwindSafe for SurfaceCommand
impl Send for SurfaceCommand
impl Sync for SurfaceCommand
impl Unpin for SurfaceCommand
impl UnsafeUnpin for SurfaceCommand
impl UnwindSafe for SurfaceCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.