pub enum RenderOutcome {
Skipped,
Presented,
}Expand description
一次 render 调用的结果。
用于让 run_loop 知道本帧是否真的提交了像素,
而不需要自己再查 tree.dirty()——脏区判定只有一处:后端 render 内部。
Variants§
Trait Implementations§
Source§impl Clone for RenderOutcome
impl Clone for RenderOutcome
impl Copy for RenderOutcome
Source§impl Debug for RenderOutcome
impl Debug for RenderOutcome
impl Eq for RenderOutcome
Source§impl PartialEq for RenderOutcome
impl PartialEq for RenderOutcome
impl StructuralPartialEq for RenderOutcome
Auto Trait Implementations§
impl Forget for RenderOutcome
impl Freeze for RenderOutcome
impl Move for RenderOutcome
impl RefUnwindSafe for RenderOutcome
impl Send for RenderOutcome
impl Sync for RenderOutcome
impl Unpin for RenderOutcome
impl UnsafeUnpin for RenderOutcome
impl UnwindSafe for RenderOutcome
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