pub struct ActionEntryBuilder<O>(/* private fields */)
where
O: IsA<ActionMap>;
Implementations§
Source§impl<O> ActionEntryBuilder<O>
impl<O> ActionEntryBuilder<O>
pub fn new(name: &str) -> Self
pub fn parameter_type(self, parameter_type: Option<&VariantTy>) -> Self
pub fn state(self, state: Variant) -> Self
pub fn activate<F: Fn(&O, &SimpleAction, Option<&Variant>) + 'static>( self, callback: F, ) -> Self
pub fn change_state<F: Fn(&O, &SimpleAction, Option<&Variant>) + 'static>( self, callback: F, ) -> Self
pub fn build(self) -> ActionEntry<O>
Trait Implementations§
Auto Trait Implementations§
impl<O> Freeze for ActionEntryBuilder<O>
impl<O> !RefUnwindSafe for ActionEntryBuilder<O>
impl<O> !Send for ActionEntryBuilder<O>
impl<O> !Sync for ActionEntryBuilder<O>
impl<O> Unpin for ActionEntryBuilder<O>
impl<O> !UnwindSafe for ActionEntryBuilder<O>
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