pub struct Step {
pub value: f64,
pub warnings: Vec<String>,
}Expand description
The per-line fraction (and the warnings from sizing it) the AX scroll-bar fallback uses.
value is in 0..=1 and means “this much of the bar a wheel line moves.”
warnings carries APPROXIMATED_WARNING when the size data was missing
and CONTENT_FITS_WARNING when the document already fits inside the
visible viewport. A clean measurement has no warnings.
Fields§
§value: f64Per-line fraction of the bar (0..=1).
warnings: Vec<String>Non-fatal sizing notes. Empty on a clean measurement.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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