[−][src]Struct kontroli::Rule
Rewrite rule.
Fields
ctx: Vec<V>
context (bound variables)
lhs: L
left-hand side (pattern to match with)
rhs: R
right-hand side (term to replace with)
Implementations
impl Rule<Arg<String, Option<Box<Term>>>, Term, Term>
[src]
impl<'s> Rule<String, Application<Symbol<'s>, Pattern<Symbol<'s>>>, RTerm<'s>>
[src]
pub fn parse(i: &str, syms: &Symbols<'s>) -> Result<Self, KoError>
[src]
Parse a rule and scope it. Used for testing.
Trait Implementations
impl<V: Clone, L: Clone, R: Clone> Clone for Rule<V, L, R>
[src]
impl<V: Debug, L: Debug, R: Debug> Debug for Rule<V, L, R>
[src]
impl<V, L: Display, R: Display> Display for Rule<V, L, R>
[src]
impl<'s> From<Rule<String, Application<Symbol<'s>, Pattern<Symbol<'s>>>, RTerm<'s>>> for Rule<'s>
[src]
impl<'s> From<Rule<String, Application<Symbol<'s>, Pattern<Symbol<'s>>>, RTerm<'s>>> for Rule<'s>
[src]
Auto Trait Implementations
impl<V, L, R> RefUnwindSafe for Rule<V, L, R> where
L: RefUnwindSafe,
R: RefUnwindSafe,
V: RefUnwindSafe,
L: RefUnwindSafe,
R: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, L, R> Send for Rule<V, L, R> where
L: Send,
R: Send,
V: Send,
L: Send,
R: Send,
V: Send,
impl<V, L, R> Sync for Rule<V, L, R> where
L: Sync,
R: Sync,
V: Sync,
L: Sync,
R: Sync,
V: Sync,
impl<V, L, R> Unpin for Rule<V, L, R> where
L: Unpin,
R: Unpin,
V: Unpin,
L: Unpin,
R: Unpin,
V: Unpin,
impl<V, L, R> UnwindSafe for Rule<V, L, R> where
L: UnwindSafe,
R: UnwindSafe,
V: UnwindSafe,
L: UnwindSafe,
R: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,