pub enum KeySite {
Node,
Child(usize),
Element,
}Expand description
Where in an emitter atom’s node a variable that atom bound sits.
The scheduler needs it to reproduce, at plan time, the key a later atom’s probe will be handed at run time: the runtime key is the class of the emitter node’s child at some position, so a sample of emitter nodes plus a site is a sample of probe keys.
Variants§
Node
The node variable itself; the key is the node’s own class.
Child(usize)
The child at this position of a fixed-arity node.
Element
An element of a variadic node, which has no fixed position: the decomposition binds the variable to each element in turn, so every child of the node is an equally likely key.
Trait Implementations§
impl Copy for KeySite
impl Eq for KeySite
impl StructuralPartialEq for KeySite
Auto Trait Implementations§
impl Freeze for KeySite
impl RefUnwindSafe for KeySite
impl Send for KeySite
impl Sync for KeySite
impl Unpin for KeySite
impl UnsafeUnpin for KeySite
impl UnwindSafe for KeySite
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<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.