pub struct SheetConfig {
pub fractions: Vec<f64>,
pub current: usize,
pub max_extent: f64,
pub settle_millis: u16,
pub dismissible: bool,
pub revision: u64,
}Fields§
§fractions: Vec<f64>§current: usize§max_extent: f64§settle_millis: u16§dismissible: bool§revision: u64Implementations§
Source§impl SheetConfig
impl SheetConfig
pub fn validate(&self) -> Result<(), Error>
Sourcepub fn extent(&self, viewport: f64, index: usize) -> Result<f64, Error>
pub fn extent(&self, viewport: f64, index: usize) -> Result<f64, Error>
Pure geometry shared by the host and tests. Tiny viewports remain finite; the host does not enforce an artificial minimum larger than the viewport.
pub fn nearest(&self, viewport: f64, extent: f64) -> Result<SheetCommand, Error>
Trait Implementations§
Source§impl Clone for SheetConfig
impl Clone for SheetConfig
Source§impl Debug for SheetConfig
impl Debug for SheetConfig
Source§impl PartialEq for SheetConfig
impl PartialEq for SheetConfig
impl StructuralPartialEq for SheetConfig
Auto Trait Implementations§
impl Freeze for SheetConfig
impl RefUnwindSafe for SheetConfig
impl Send for SheetConfig
impl Sync for SheetConfig
impl Unpin for SheetConfig
impl UnsafeUnpin for SheetConfig
impl UnwindSafe for SheetConfig
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