pub struct MeasureKey { /* private fields */ }Expand description
一次组件层实测所依赖的环境与内容版本。
Implementations§
Source§impl MeasureKey
impl MeasureKey
Sourcepub fn new(
width_signature: u64,
font_generation: u64,
dpr: f32,
revision: u64,
) -> Self
pub fn new( width_signature: u64, font_generation: u64, dpr: f32, revision: u64, ) -> Self
width_signature:所有参与测量的宽度折成的签名,见width_signature。font_generation:TextRuntime::style_generation()。dpr:TextRuntime::dpr()。revision:应用推进的内容版本。
pub fn width_signature(&self) -> u64
pub fn font_generation(&self) -> u64
pub fn dpr(&self) -> f32
pub fn revision(&self) -> u64
Trait Implementations§
Source§impl Clone for MeasureKey
impl Clone for MeasureKey
impl Copy for MeasureKey
Source§impl Debug for MeasureKey
impl Debug for MeasureKey
impl Eq for MeasureKey
Source§impl Hash for MeasureKey
impl Hash for MeasureKey
Source§impl PartialEq for MeasureKey
impl PartialEq for MeasureKey
impl StructuralPartialEq for MeasureKey
Auto Trait Implementations§
impl Forget for MeasureKey
impl Freeze for MeasureKey
impl Move for MeasureKey
impl RefUnwindSafe for MeasureKey
impl Send for MeasureKey
impl Sync for MeasureKey
impl Unpin for MeasureKey
impl UnsafeUnpin for MeasureKey
impl UnwindSafe for MeasureKey
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