pub struct Policy {
pub max_asides_expanded: usize,
pub max_asides_medium: usize,
pub max_asides_compact: usize,
pub main_min_width: f64,
pub aside_min_width: f64,
}Expand description
Tunable arbitration policy. Defaults are the spec’s cross-platform defaults.
Fields§
§max_asides_expanded: usize§max_asides_medium: usize§max_asides_compact: usize§main_min_width: f64Physical admission tokens (§3.3): a slot is admitted only when the main
keeps main_min_width and each admitted left/right slot keeps
aside_min_width within the container. Size class is the ceiling, not
a guarantee — a technically-expanded but narrow window admits fewer.
aside_min_width: f64Implementations§
Trait Implementations§
impl Copy for Policy
Source§impl<'de> Deserialize<'de> for Policy
impl<'de> Deserialize<'de> for Policy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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