pub enum AliasConstraints {
Ref(Label),
Alias(Label, Label),
Assign(Label, Label),
}
Expand description
Aliasing Constraints
Variants§
Trait Implementations§
Source§impl Clone for AliasConstraints
impl Clone for AliasConstraints
Source§fn clone(&self) -> AliasConstraints
fn clone(&self) -> AliasConstraints
Returns a copy 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 Debug for AliasConstraints
impl Debug for AliasConstraints
Source§impl Display for AliasConstraints
impl Display for AliasConstraints
Source§impl Hash for AliasConstraints
impl Hash for AliasConstraints
Source§impl LocalConstraint for AliasConstraints
impl LocalConstraint for AliasConstraints
Source§const CHR_RULES: &'static str = ":- use_module(library(chr)).\r\n:- chr_constraint alias/2, assign/2, ref/1.\r\n\r\n/* set semantics for aliasing */\r\nalias(A,B) \\ alias(A,B) <=> true.\r\n\r\n/* propagating the aliasing */\r\nalias(Q, P), alias(R, Q) ==> alias(R, P).\r\n\r\n/* if P is reference type and Q must be a reference type (and vice versa)\r\nthen assigning Q = P means aliasing P to Q */\r\nref(P) \\ assign(Q, P) <=> alias(Q, P).\r\nref(Q) \\ assign(Q, P) <=> alias(Q, P).\r\n"
const CHR_RULES: &'static str = ":- use_module(library(chr)).\r\n:- chr_constraint alias/2, assign/2, ref/1.\r\n\r\n/* set semantics for aliasing */\r\nalias(A,B) \\ alias(A,B) <=> true.\r\n\r\n/* propagating the aliasing */\r\nalias(Q, P), alias(R, Q) ==> alias(R, P).\r\n\r\n/* if P is reference type and Q must be a reference type (and vice versa)\r\nthen assigning Q = P means aliasing P to Q */\r\nref(P) \\ assign(Q, P) <=> alias(Q, P).\r\nref(Q) \\ assign(Q, P) <=> alias(Q, P).\r\n"
static CHR rules for the constraint system
Source§impl PartialEq for AliasConstraints
impl PartialEq for AliasConstraints
impl Eq for AliasConstraints
impl StructuralPartialEq for AliasConstraints
Auto Trait Implementations§
impl Freeze for AliasConstraints
impl RefUnwindSafe for AliasConstraints
impl Send for AliasConstraints
impl Sync for AliasConstraints
impl Unpin for AliasConstraints
impl UnwindSafe for AliasConstraints
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more