Struct spirt::ControlNode
source · pub struct ControlNode(/* private fields */);
Expand description
Entity handle for a ControlNodeDef
(a control-flow operator or leaf).
See ControlRegion
docs for more on control-flow in SPIR-T.
Trait Implementations§
source§impl Clone for ControlNode
impl Clone for ControlNode
source§fn clone(&self) -> ControlNode
fn clone(&self) -> ControlNode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Hash for ControlNode
impl Hash for ControlNode
source§impl PartialEq<ControlNode> for ControlNode
impl PartialEq<ControlNode> for ControlNode
source§fn eq(&self, other: &ControlNode) -> bool
fn eq(&self, other: &ControlNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ControlNode
impl Eq for ControlNode
impl StructuralEq for ControlNode
impl StructuralPartialEq for ControlNode
Auto Trait Implementations§
impl RefUnwindSafe for ControlNode
impl Send for ControlNode
impl Sync for ControlNode
impl Unpin for ControlNode
impl UnwindSafe for ControlNode
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<E, V> EntityOrientedMapKey<V> for Ewhere
E: Entity,
impl<E, V> EntityOrientedMapKey<V> for Ewhere E: Entity,
fn to_entity(key: E) -> E
§type DenseValueSlots = Option<V>
type DenseValueSlots = Option<V>
A type holding enough different
Option<V>
slots, for all possible
values of Self
, for a given Self::Entity
value contained inside.fn get_dense_value_slot(_: E, slot: &Option<V>) -> &Option<V>
fn get_dense_value_slot_mut(_: E, slot: &mut Option<V>) -> &mut Option<V>
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.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.