Skip to main content

Undo

Struct Undo 

Source
pub struct Undo { /* private fields */ }
Expand description

What puts a scene back as it was before edits applied to it: each step undone, last first, the files they let go held again, and whether it was themed.

Implementations§

Source§

impl Undo

Source

pub fn undo(self, scene: &mut Scene, uses: &mut Uses)

Puts scene, whose files uses counts, back as it was before the edits this undoes — which must be the last applied to it.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Undo

§

impl !UnwindSafe for Undo

§

impl Forget for Undo

§

impl Freeze for Undo
where *const u8 is !null: Freeze, PhantomData<Step>: Freeze, *const LeafNode<ImageId, Arc<ImageFile>> is !null: Freeze, PhantomData<(Owned, LeafOrInternal)>: Freeze, PhantomData<Box<(ImageId, Arc<ImageFile>)>>: Freeze, *const LeafNode<FontId, Arc<FontFile>> is !null: Freeze, PhantomData<Box<(FontId, Arc<FontFile>)>>: Freeze,

§

impl Move for Undo

§

impl Send for Undo
where RawVecInner: Send, BoxRaw<[u8]>: Send, NodeRef<Owned, OrderKey, Node, LeafOrInternal>: Send, BoxRaw<(OrderKey, Node)>: Send, NodeRef<Owned, ImageId, Arc<ImageFile>, LeafOrInternal>: Send, BoxRaw<(ImageId, Arc<ImageFile>)>: Send, NodeRef<Owned, FontId, Arc<FontFile>, LeafOrInternal>: Send, BoxRaw<(FontId, Arc<FontFile>)>: Send,

§

impl Sync for Undo
where RawVecInner: Sync, BoxRaw<[u8]>: Sync, NodeRef<Owned, OrderKey, Node, LeafOrInternal>: Sync, BoxRaw<(OrderKey, Node)>: Sync, NodeRef<Owned, ImageId, Arc<ImageFile>, LeafOrInternal>: Sync, BoxRaw<(ImageId, Arc<ImageFile>)>: Sync, NodeRef<Owned, FontId, Arc<FontFile>, LeafOrInternal>: Sync, BoxRaw<(FontId, Arc<FontFile>)>: Sync,

§

impl Unpin for Undo
where *const u8 is !null: Unpin, Box<[u8]>: Unpin, *const LeafNode<OrderKey, Node> is !null: Unpin, Box<(OrderKey, Node)>: Unpin, *const LeafNode<ImageId, Arc<ImageFile>> is !null: Unpin, Box<(ImageId, Arc<ImageFile>)>: Unpin, *const LeafNode<FontId, Arc<FontFile>> is !null: Unpin, Box<(FontId, Arc<FontFile>)>: Unpin,

§

impl UnsafeUnpin for Undo

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.