pub enum ConditionalKind {
If,
While,
}Expand description
Kind of conditional node. Matches CU_GRAPH_COND_TYPE_*.
Variants§
If
Execute the inner graph at most once when the handle’s value is non-zero.
While
Execute the inner graph repeatedly while the handle’s value stays non-zero. The inner graph is responsible for clearing the handle when it should exit.
Trait Implementations§
Source§impl Clone for ConditionalKind
impl Clone for ConditionalKind
Source§fn clone(&self) -> ConditionalKind
fn clone(&self) -> ConditionalKind
Returns a duplicate 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 Debug for ConditionalKind
impl Debug for ConditionalKind
Source§impl PartialEq for ConditionalKind
impl PartialEq for ConditionalKind
impl Copy for ConditionalKind
impl Eq for ConditionalKind
impl StructuralPartialEq for ConditionalKind
Auto Trait Implementations§
impl Freeze for ConditionalKind
impl RefUnwindSafe for ConditionalKind
impl Send for ConditionalKind
impl Sync for ConditionalKind
impl Unpin for ConditionalKind
impl UnsafeUnpin for ConditionalKind
impl UnwindSafe for ConditionalKind
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,
§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
§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
Compare self to
key and return true if they are equal.§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