pub struct Variable<PT: ProtocolTypes> {
pub unique_id: u32,
pub resistant_id: u32,
pub typ: TypeShape<PT>,
pub query: Query<PT::Matcher>,
}
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<PT>
§query: Query<PT::Matcher>
The struct which holds information about how to query this variable from knowledge
Implementations§
Trait Implementations§
source§impl<PT: ProtocolTypes> Clone for Variable<PT>
impl<PT: ProtocolTypes> Clone for Variable<PT>
source§impl<'de, PT> Deserialize<'de> for Variable<PT>where
PT: ProtocolTypes,
impl<'de, PT> Deserialize<'de> for Variable<PT>where
PT: ProtocolTypes,
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<PT: ProtocolTypes> Display for Variable<PT>
impl<PT: ProtocolTypes> Display for Variable<PT>
source§impl<PT: ProtocolTypes> Hash for Variable<PT>
impl<PT: ProtocolTypes> Hash for Variable<PT>
source§impl<PT: ProtocolTypes> PartialEq for Variable<PT>
impl<PT: ProtocolTypes> PartialEq for Variable<PT>
source§impl<PT> Serialize for Variable<PT>where
PT: ProtocolTypes,
impl<PT> Serialize for Variable<PT>where
PT: ProtocolTypes,
impl<PT: ProtocolTypes> Eq for Variable<PT>
Auto Trait Implementations§
impl<PT> Freeze for Variable<PT>
impl<PT> RefUnwindSafe for Variable<PT>
impl<PT> Send for Variable<PT>
impl<PT> Sync for Variable<PT>
impl<PT> Unpin for Variable<PT>
impl<PT> UnwindSafe for Variable<PT>
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
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.