pub struct LayerChanges {
pub order_changed: bool,
/* private fields */
}Expand description
The layers that differ between two layer lists, by id. A layer whose
style data is the same Arc in both lists has no entry.
Fields§
§order_changed: boolWhether the layers in both lists are in another order, or a layer was added or removed: the drawing order needs building again.
Implementations§
Source§impl LayerChanges
impl LayerChanges
Sourcepub fn between(old: &Arc<LayerList>, new: &Arc<LayerList>) -> LayerChanges
pub fn between(old: &Arc<LayerList>, new: &Arc<LayerList>) -> LayerChanges
What changed from old to new. A layer found in both is matched by
id, wherever it is: one that only moved has no entry, and sets
order_changed.
Sourcepub fn get(&self, id: &str) -> Option<LayerChange>
pub fn get(&self, id: &str) -> Option<LayerChange>
The change of the layer id, if it changed.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&Arc<str>, LayerChange)>
pub fn iter(&self) -> impl Iterator<Item = (&Arc<str>, LayerChange)>
Each changed layer’s id and change, in id order.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for LayerChanges
impl Clone for LayerChanges
Source§impl Debug for LayerChanges
impl Debug for LayerChanges
Auto Trait Implementations§
impl Forget for LayerChanges
impl Freeze for LayerChanges
impl Move for LayerChanges
impl RefUnwindSafe for LayerChanges
impl Send for LayerChanges
impl Sync for LayerChanges
impl Unpin for LayerChanges
impl UnsafeUnpin for LayerChangeswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Arc<str>>: UnsafeUnpin,
PhantomData<LayerChange>: UnsafeUnpin,
impl UnwindSafe for LayerChanges
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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