pub struct WindowConstraints {
pub min_width: Option<f64>,
pub min_height: Option<f64>,
pub max_width: Option<f64>,
pub max_height: Option<f64>,
}Expand description
Optional window client-size limits in device-independent pixels (DIPs).
Fields§
§min_width: Option<f64>§min_height: Option<f64>§max_width: Option<f64>§max_height: Option<f64>Trait Implementations§
Source§impl Clone for WindowConstraints
impl Clone for WindowConstraints
Source§fn clone(&self) -> WindowConstraints
fn clone(&self) -> WindowConstraints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowConstraints
Source§impl Debug for WindowConstraints
impl Debug for WindowConstraints
Source§impl Default for WindowConstraints
impl Default for WindowConstraints
Source§fn default() -> WindowConstraints
fn default() -> WindowConstraints
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowConstraints
impl PartialEq for WindowConstraints
impl StructuralPartialEq for WindowConstraints
Auto Trait Implementations§
impl Freeze for WindowConstraints
impl RefUnwindSafe for WindowConstraints
impl Send for WindowConstraints
impl Sync for WindowConstraints
impl Unpin for WindowConstraints
impl UnsafeUnpin for WindowConstraints
impl UnwindSafe for WindowConstraints
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