pub struct CommandMapBuilder<'a> { /* private fields */ }
Expand description
Used to fluently construct CommandMap
s.
Implementations§
Source§impl<'a> CommandMapBuilder<'a>
impl<'a> CommandMapBuilder<'a>
Sourcepub fn push(
self,
action_command: impl ActionCommand + Send + Sync + 'a,
) -> CommandMapBuilder<'a>
pub fn push( self, action_command: impl ActionCommand + Send + Sync + 'a, ) -> CommandMapBuilder<'a>
Add a new ActionCommand
to the CommandMap
.
Sourcepub fn push_all(
self,
action_commands: impl IntoIterator<Item = impl ActionCommand + Send + Sync + 'a>,
) -> CommandMapBuilder<'a>
pub fn push_all( self, action_commands: impl IntoIterator<Item = impl ActionCommand + Send + Sync + 'a>, ) -> CommandMapBuilder<'a>
Add zero or more ActionCommand
s to the CommandMap
.
Sourcepub fn build(self) -> CommandMap<'a>
pub fn build(self) -> CommandMap<'a>
Finalize this builder and generate a CommandMap
.
Auto Trait Implementations§
impl<'a> Freeze for CommandMapBuilder<'a>
impl<'a> !RefUnwindSafe for CommandMapBuilder<'a>
impl<'a> Send for CommandMapBuilder<'a>
impl<'a> Sync for CommandMapBuilder<'a>
impl<'a> Unpin for CommandMapBuilder<'a>
impl<'a> !UnwindSafe for CommandMapBuilder<'a>
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