pub enum Comparisons {
Tlc,
Tla,
}Expand description
How = and \in treat values that TLC refuses to compare.
TLC’s rules are asymmetric and order-dependent: [a |-> 1, b |-> 1] = <<1>> is an error while <<1>> = [a |-> 1, b |-> 1] is FALSE.
--comparisons=tla answers such tests as TLA+ defines them. It is
result-changing and is the default profile’s setting; --compat=tlc
keeps TLC’s rules.
Variants§
Tlc
TLC’s checked equals and member, with TLC’s errors.
--comparisons=tlc; part of --compat=tlc.
Tla
TLA+’s answers for = and \in between functions (including records
and tuples) and sets: symmetric and independent of element order. The
error is kept only where TLA+ leaves the answer unspecified (1 = "a",
{1} = 1). --comparisons=tla; the default profile’s setting.
Trait Implementations§
Source§impl Clone for Comparisons
impl Clone for Comparisons
impl Copy for Comparisons
Source§impl Debug for Comparisons
impl Debug for Comparisons
Source§impl Default for Comparisons
impl Default for Comparisons
impl Eq for Comparisons
Source§impl Hash for Comparisons
impl Hash for Comparisons
Source§impl PartialEq for Comparisons
impl PartialEq for Comparisons
impl StructuralPartialEq for Comparisons
Auto Trait Implementations§
impl Forget for Comparisons
impl Freeze for Comparisons
impl Move for Comparisons
impl RefUnwindSafe for Comparisons
impl Send for Comparisons
impl Sync for Comparisons
impl Unpin for Comparisons
impl UnsafeUnpin for Comparisons
impl UnwindSafe for Comparisons
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