pub struct DirtyRegion {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}展开描述
表示帧内的矩形脏区域。
字段§
§x: i32区域的左坐标(以像素为单位)。
y: i32区域的顶坐标(以像素为单位)。
width: i32区域的宽度(以像素为单位)。
height: i32区域的高度(以像素为单位)。
trait 实现§
源码§impl Clone for DirtyRegion
impl Clone for DirtyRegion
源码§fn clone(&self) -> DirtyRegion
fn clone(&self) -> DirtyRegion
返回该值的副本。 了解更多
1.0.0 · 源码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行复制赋值。 了解更多源码§impl PartialEq for DirtyRegion
impl PartialEq for DirtyRegion
impl Copy for DirtyRegion
impl Eq for DirtyRegion
impl StructuralPartialEq for DirtyRegion
自动 trait 实现§
impl Freeze for DirtyRegion
impl RefUnwindSafe for DirtyRegion
impl Send for DirtyRegion
impl Sync for DirtyRegion
impl Unpin for DirtyRegion
impl UnsafeUnpin for DirtyRegion
impl UnwindSafe for DirtyRegion
Blanket 实现§
源码§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
源码§impl<T> IntoEither for T
impl<T> IntoEither for T
源码§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
当
into_left 为 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。 了解更多源码§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
当
into_left(&self) 返回 true 时,将 self 转换为
Left 变体的
Either<Self, Self>;
否则将其转换为
Right 变体的
Either<Self, Self>。 了解更多