Struct cosmic_undo_2::Splice
source · pub struct Splice<'a, T, I: IntoIterator<Item = T>> {
pub start: IterRealized<'a, T>,
pub end: IterRealized<'a, T>,
pub commands: I,
}
Expand description
Specify a splice when calling Commands::splice
The [end
, start
) bounds the slice of command that will
be removed during the merge. end
and start
are in reverse order
because IterRealized goes backward.
The removed slice is then replaced by the sequence (not reversed) of
commands denoted by commands
.
Fields§
§start: IterRealized<'a, T>
§end: IterRealized<'a, T>
§commands: I
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, I> RefUnwindSafe for Splice<'a, T, I>where I: RefUnwindSafe, T: RefUnwindSafe,
impl<'a, T, I> Send for Splice<'a, T, I>where I: Send, T: Sync,
impl<'a, T, I> Sync for Splice<'a, T, I>where I: Sync, T: Sync,
impl<'a, T, I> Unpin for Splice<'a, T, I>where I: Unpin,
impl<'a, T, I> UnwindSafe for Splice<'a, T, I>where I: UnwindSafe, T: RefUnwindSafe,
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