pub struct Edits {
pub list: Vec<Edit>,
pub images: ImageFiles,
pub fonts: FontFiles,
pub themed: bool,
}Expand description
Edits with the image and font files they bring: everything that takes a scene to the next. Of the files, only those the scene before didn’t hold — each travels once.
Fields§
§list: Vec<Edit>The edits, in the order they apply.
images: ImageFilesThe image files they bring that the scene before didn’t hold.
fonts: FontFilesThe font files they bring that the scene before didn’t hold.
themed: boolWhether the scene they make is themed.
Implementations§
Source§impl Edits
impl Edits
Sourcepub fn between(old: &Scene, new: &Scene) -> Edits
pub fn between(old: &Scene, new: &Scene) -> Edits
The edits that turn old into new, by their nodes’ ids: an insert
before the first of 100,000 siblings is one insert. It compares the
two scenes whole; a design resolved again finds most edits without
one, from what a save reached.
Trait Implementations§
impl StructuralPartialEq for Edits
Auto Trait Implementations§
impl !RefUnwindSafe for Edits
impl !UnwindSafe for Edits
impl Forget for Edits
impl Freeze for Editswhere
*const u8 is !null: Freeze,
PhantomData<Edit>: 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 Edits
impl Send for Editswhere
RawVecInner: 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 Editswhere
RawVecInner: 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 Editswhere
*const u8 is !null: 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 Editswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Edit>: UnsafeUnpin,
*const LeafNode<ImageId, Arc<ImageFile>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ImageId, Arc<ImageFile>)>>: UnsafeUnpin,
*const LeafNode<FontId, Arc<FontFile>> is !null: UnsafeUnpin,
PhantomData<Box<(FontId, Arc<FontFile>)>>: UnsafeUnpin,
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