[−][src]Struct undo::Merged
The result of merging commands.
The merge!
macro can be used for convenience when merging commands.
Methods
impl<R> Merged<R>
[src]
pub fn new(
cmd1: impl Command<R> + 'static,
cmd2: impl Command<R> + 'static
) -> Merged<R>
[src]
cmd1: impl Command<R> + 'static,
cmd2: impl Command<R> + 'static
) -> Merged<R>
Merges cmd1
and cmd2
into a single command.
pub fn push(
&mut self,
command: impl Command<R> + 'static
)
[src]
&mut self,
command: impl Command<R> + 'static
)
Merges self
with command
.
pub fn join(
self,
command: impl Command<R> + 'static
) -> Merged<R>
[src]
self,
command: impl Command<R> + 'static
) -> Merged<R>
Merges self
with command
and returns the merged command.
Trait Implementations
impl<R> Command<R> for Merged<R>
[src]
fn apply(&mut self, receiver: &mut R) -> Result
[src]
fn undo(&mut self, receiver: &mut R) -> Result
[src]
fn redo(&mut self, receiver: &mut R) -> Result
[src]
fn merge(&self) -> Merge
[src]
fn is_dead(&self) -> bool
[src]
impl<R, C: Command<R> + 'static> Extend<C> for Merged<R>
[src]
fn extend<T: IntoIterator<Item = C>>(&mut self, iter: T)
[src]
impl<R> Default for Merged<R>
[src]
impl<R> IntoIterator for Merged<R>
[src]
type Item = Box<dyn Command<R>>
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<R> Debug for Merged<R>
[src]
impl<R, C: Command<R> + 'static> FromIterator<C> for Merged<R>
[src]
fn from_iter<T: IntoIterator<Item = C>>(commands: T) -> Self
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,