pub struct WebViewHostSync { /* private fields */ }Expand description
跨帧 WebView 宿主裁剪同步器(最多追踪 8 个嵌入式 WebView,静息帧 0 同步开销)。
Implementations§
Source§impl WebViewHostSync
impl WebViewHostSync
pub const fn new() -> Self
Sourcepub fn diff_region(
&mut self,
region: WebViewHostRegion,
scale_factor: f32,
) -> Option<WebViewHostUpdate>
pub fn diff_region( &mut self, region: WebViewHostRegion, scale_factor: f32, ) -> Option<WebViewHostUpdate>
对比本帧布局算出的 WebViewHostRegion;仅当物理坐标、可见性或 Z 序发生变化时返回 Some(update)。
Trait Implementations§
Source§impl Clone for WebViewHostSync
impl Clone for WebViewHostSync
Source§impl Debug for WebViewHostSync
impl Debug for WebViewHostSync
Auto Trait Implementations§
impl Forget for WebViewHostSync
impl Freeze for WebViewHostSync
impl Move for WebViewHostSync
impl RefUnwindSafe for WebViewHostSync
impl Send for WebViewHostSync
impl Sync for WebViewHostSync
impl Unpin for WebViewHostSync
impl UnsafeUnpin for WebViewHostSync
impl UnwindSafe for WebViewHostSync
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。