pub struct ConditionNode<T> {
pub name: String,
pub func: Box<dyn Fn(&TickContext<'_, T>) -> bool + Send + Sync>,
}Expand description
A leaf that evaluates a closure against the context.
Fields§
§name: String§func: Box<dyn Fn(&TickContext<'_, T>) -> bool + Send + Sync>Trait Implementations§
Source§impl<T> Debug for ConditionNode<T>
impl<T> Debug for ConditionNode<T>
Auto Trait Implementations§
impl<T> Freeze for ConditionNode<T>
impl<T> !RefUnwindSafe for ConditionNode<T>
impl<T> Send for ConditionNode<T>
impl<T> Sync for ConditionNode<T>
impl<T> Unpin for ConditionNode<T>
impl<T> UnsafeUnpin for ConditionNode<T>
impl<T> !UnwindSafe for ConditionNode<T>
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