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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for ControlNode
impl PartialEq for ControlNode
impl Copy for ControlNode
impl Eq for ControlNode
impl StructuralPartialEq for ControlNode
Auto Trait Implementations§
impl Freeze for ControlNode
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E, V> EntityOrientedMapKey<V> for Ewhere
E: Entity,
impl<E, V> EntityOrientedMapKey<V> for Ewhere
E: Entity,
Source§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 to_entity(key: E) -> E
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 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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more