Enum chalk_engine::Literal [−][src]
pub enum Literal<C: Context> { Positive(C::GoalInEnvironment), Negative(C::GoalInEnvironment), }
Either A
or ~A
, where A
is a Env |- Goal
.
Variants
Positive(C::GoalInEnvironment)
Negative(C::GoalInEnvironment)
Trait Implementations
impl<C: Context> PartialEq for Literal<C>
[src]
impl<C: Context> PartialEq for Literal<C>
fn eq(&self, other: &Literal<C>) -> bool
[src]
fn eq(&self, other: &Literal<C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<C: Context> Eq for Literal<C>
[src]
impl<C: Context> Eq for Literal<C>
impl<C: Context> Hash for Literal<C>
[src]
impl<C: Context> Hash for Literal<C>
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl<C: Clone + Context> Clone for Literal<C> where
C::GoalInEnvironment: Clone,
[src]
impl<C: Clone + Context> Clone for Literal<C> where
C::GoalInEnvironment: Clone,
fn clone(&self) -> Literal<C>
[src]
fn clone(&self) -> Literal<C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<C: Debug + Context> Debug for Literal<C> where
C::GoalInEnvironment: Debug,
[src]
impl<C: Debug + Context> Debug for Literal<C> where
C::GoalInEnvironment: Debug,
Auto Trait Implementations
impl<C> Send for Literal<C> where
<C as Context>::GoalInEnvironment: Send,
impl<C> Send for Literal<C> where
<C as Context>::GoalInEnvironment: Send,
impl<C> Sync for Literal<C> where
<C as Context>::GoalInEnvironment: Sync,
impl<C> Sync for Literal<C> where
<C as Context>::GoalInEnvironment: Sync,