pub struct SliceSource<'a> { /* private fields */ }Expand description
Adapter that wraps a &[Rect] slice as an InvalidationSource.
Useful for feeding a snapshot of dirty rects — e.g. from
rlvgl_core::anim::Animations::dirty_rects — through a
InvalidationList::gather call without requiring an external
Vec or intermediate struct.
Implementations§
Trait Implementations§
Source§impl InvalidationSource for SliceSource<'_>
impl InvalidationSource for SliceSource<'_>
Auto Trait Implementations§
impl<'a> Freeze for SliceSource<'a>
impl<'a> RefUnwindSafe for SliceSource<'a>
impl<'a> Send for SliceSource<'a>
impl<'a> Sync for SliceSource<'a>
impl<'a> Unpin for SliceSource<'a>
impl<'a> UnsafeUnpin for SliceSource<'a>
impl<'a> UnwindSafe for SliceSource<'a>
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