pub struct RenderRegion {
pub id: String,
pub kind: RegionKind,
pub rect: Rect,
pub code: u8,
pub owned_pixels: f64,
}Expand description
One region of the run’s atlas.
Fields§
§id: String§kind: RegionKind§rect: RectThe region’s rect on screen.
code: u8Its code in the atlas label plane and how many pixels the atlas gives it.
owned_pixels: f64Trait Implementations§
Source§impl Clone for RenderRegion
impl Clone for RenderRegion
Source§impl Debug for RenderRegion
impl Debug for RenderRegion
Source§impl PartialEq for RenderRegion
impl PartialEq for RenderRegion
impl StructuralPartialEq for RenderRegion
Auto Trait Implementations§
impl Freeze for RenderRegion
impl RefUnwindSafe for RenderRegion
impl Send for RenderRegion
impl Sync for RenderRegion
impl Unpin for RenderRegion
impl UnsafeUnpin for RenderRegion
impl UnwindSafe for RenderRegion
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,
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