pub struct DirtyRegionSet { /* private fields */ }Implementations§
Source§impl DirtyRegionSet
impl DirtyRegionSet
pub fn new(viewport: UiRect) -> Self
pub fn with_strategy(viewport: UiRect, strategy: DirtyStrategy) -> Self
pub fn full(viewport: UiRect) -> Self
pub fn mark_full(&mut self)
pub fn mark_full_with_reason(&mut self, reason: &'static str)
pub fn add(&mut self, rect: UiRect)
pub fn add_all(&mut self, rects: impl IntoIterator<Item = UiRect>)
pub fn is_full(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn rects(&self) -> &[UiRect]
pub fn rect_count(&self) -> usize
pub fn dirty_area(&self) -> f64
pub fn viewport_area(&self) -> f64
pub fn area_ratio(&self) -> f32
pub fn viewport(&self) -> UiRect
pub fn effective_rects(&self) -> Vec<UiRect>
pub fn fallback_reason(&self) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for DirtyRegionSet
impl Clone for DirtyRegionSet
Source§fn clone(&self) -> DirtyRegionSet
fn clone(&self) -> DirtyRegionSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DirtyRegionSet
impl RefUnwindSafe for DirtyRegionSet
impl Send for DirtyRegionSet
impl Sync for DirtyRegionSet
impl Unpin for DirtyRegionSet
impl UnsafeUnpin for DirtyRegionSet
impl UnwindSafe for DirtyRegionSet
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