Struct boomerang::builder::ActionBuilder
source · pub struct ActionBuilder {
pub triggers: SecondaryMap<BuilderReactionKey, ()>,
pub schedulers: SecondaryMap<BuilderReactionKey, ()>,
/* private fields */
}
Fields§
§triggers: SecondaryMap<BuilderReactionKey, ()>
Out-going Reactions that this action triggers
schedulers: SecondaryMap<BuilderReactionKey, ()>
List of Reactions that may schedule this action
Implementations§
source§impl ActionBuilder
impl ActionBuilder
pub fn new( name: &str, ty: ActionType, action_builder_fn: Box<dyn ActionBuilderFn> ) -> Self
pub fn get_name(&self) -> &str
pub fn get_type(&self) -> &ActionType
sourcepub fn build_runtime(&self, action_key: ActionKey) -> Action
pub fn build_runtime(&self, action_key: ActionKey) -> Action
Build the ActionBuilder
into a [runtime::InternalAction
]
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ActionBuilder
impl !Send for ActionBuilder
impl !Sync for ActionBuilder
impl Unpin for ActionBuilder
impl !UnwindSafe for ActionBuilder
Blanket Implementations§
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.