pub struct Variable<M> {
pub unique_id: u32,
pub resistant_id: u32,
pub typ: TypeShape,
pub query: Query<M>,
}
Expand description
A variable symbol with fixed type.
Fields§
§unique_id: u32
Unique ID of this variable. Uniqueness is guaranteed across all Term
s ever created. Cloning
change this ID.
resistant_id: u32
ID of this variable. This id stays the same during cloning.
typ: TypeShape
§query: Query<M>
The struct which holds information about how to query this variable from knowledge
Implementations§
Trait Implementations§
source§impl<'de, M> Deserialize<'de> for Variable<M>where
M: Deserialize<'de>,
impl<'de, M> Deserialize<'de> for Variable<M>where
M: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<M: Matcher> PartialEq<Variable<M>> for Variable<M>
impl<M: Matcher> PartialEq<Variable<M>> for Variable<M>
impl<M: Matcher> Eq for Variable<M>
Auto Trait Implementations§
impl<M> RefUnwindSafe for Variable<M>where
M: RefUnwindSafe,
impl<M> Send for Variable<M>where
M: Send,
impl<M> Sync for Variable<M>where
M: Sync,
impl<M> Unpin for Variable<M>where
M: Unpin,
impl<M> UnwindSafe for Variable<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.