pub struct CoreVarSubstitution<L: Language> { /* private fields */ }
Expand description
A substitution that is only between variables. These are reversible.
Implementations§
Source§impl<L: Language> CoreVarSubstitution<L>
impl<L: Language> CoreVarSubstitution<L>
pub fn reverse(&self) -> CoreVarSubstitution<L>
pub fn apply<T: CoreFold<L>>(&self, t: &T) -> T
pub fn map_var(&self, v: CoreVariable<L>) -> Option<CoreVariable<L>>
pub fn maps_var(&self, v: CoreVariable<L>) -> bool
pub fn insert_mapping( &mut self, from: impl Upcast<CoreVariable<L>>, to: impl Upcast<CoreVariable<L>>, )
Trait Implementations§
Source§impl<L: Clone + Language> Clone for CoreVarSubstitution<L>
impl<L: Clone + Language> Clone for CoreVarSubstitution<L>
Source§fn clone(&self) -> CoreVarSubstitution<L>
fn clone(&self) -> CoreVarSubstitution<L>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<L: Default + Language> Default for CoreVarSubstitution<L>
impl<L: Default + Language> Default for CoreVarSubstitution<L>
Source§fn default() -> CoreVarSubstitution<L>
fn default() -> CoreVarSubstitution<L>
Returns the “default value” for a type. Read more
Source§impl<L, A, B> Extend<(A, B)> for CoreVarSubstitution<L>
impl<L, A, B> Extend<(A, B)> for CoreVarSubstitution<L>
Source§fn extend<T: IntoIterator<Item = (A, B)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (A, B)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<L, A, B> FromIterator<(A, B)> for CoreVarSubstitution<L>
impl<L, A, B> FromIterator<(A, B)> for CoreVarSubstitution<L>
Source§impl<L: Ord + Language> Ord for CoreVarSubstitution<L>
impl<L: Ord + Language> Ord for CoreVarSubstitution<L>
Source§fn cmp(&self, other: &CoreVarSubstitution<L>) -> Ordering
fn cmp(&self, other: &CoreVarSubstitution<L>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<L: PartialOrd + Language> PartialOrd for CoreVarSubstitution<L>
impl<L: PartialOrd + Language> PartialOrd for CoreVarSubstitution<L>
impl<L: Eq + Language> Eq for CoreVarSubstitution<L>
impl<L: Language> StructuralPartialEq for CoreVarSubstitution<L>
Auto Trait Implementations§
impl<L> Freeze for CoreVarSubstitution<L>
impl<L> RefUnwindSafe for CoreVarSubstitution<L>
impl<L> Send for CoreVarSubstitution<L>
impl<L> Sync for CoreVarSubstitution<L>
impl<L> Unpin for CoreVarSubstitution<L>
impl<L> UnwindSafe for CoreVarSubstitution<L>
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