pub struct StyleDiff {
pub layers: LayerChanges,
pub sources: ItemChanges<Source>,
pub images: ItemChanges<Arc<StyleImage>>,
}Expand description
What a renderer has to redo to go from one version of a style to another: the change class of each layer, source and image.
It compares the two versions, not the edits between them, so it answers
for however many versions came in between. Parts whose Arc is the same
in both come out empty without a walk. Light, sky and global state
aren’t in it: a renderer compares them by their own pointers.
Fields§
§layers: LayerChanges§sources: ItemChanges<Source>A source of another type with the same id is removed and added.
images: ItemChanges<Arc<StyleImage>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StyleDiff
impl !UnwindSafe for StyleDiff
impl Forget for StyleDiff
impl Freeze for StyleDiffwhere
*const u8 is !null: Freeze,
PhantomData<Arc<str>>: Freeze,
PhantomData<LayerChange>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Source>: Freeze,
PhantomData<Arc<StyleImage>>: Freeze,
impl Move for StyleDiff
impl Send for StyleDiff
impl Sync for StyleDiff
impl Unpin for StyleDiff
impl UnsafeUnpin for StyleDiffwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<str>>: UnsafeUnpin,
PhantomData<LayerChange>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Source>: UnsafeUnpin,
PhantomData<Arc<StyleImage>>: 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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more