pub struct ModalSizeConstraints {
pub min_width: Option<u16>,
pub max_width: Option<u16>,
pub min_height: Option<u16>,
pub max_height: Option<u16>,
}Expand description
Modal size constraints (min/max width/height).
Fields§
§min_width: Option<u16>§max_width: Option<u16>§min_height: Option<u16>§max_height: Option<u16>Implementations§
Source§impl ModalSizeConstraints
impl ModalSizeConstraints
Sourcepub fn min_height(self, value: u16) -> Self
pub fn min_height(self, value: u16) -> Self
Set minimum height.
Sourcepub fn max_height(self, value: u16) -> Self
pub fn max_height(self, value: u16) -> Self
Set maximum height.
Trait Implementations§
Source§impl Clone for ModalSizeConstraints
impl Clone for ModalSizeConstraints
Source§fn clone(&self) -> ModalSizeConstraints
fn clone(&self) -> ModalSizeConstraints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModalSizeConstraints
impl Debug for ModalSizeConstraints
Source§impl Default for ModalSizeConstraints
impl Default for ModalSizeConstraints
Source§fn default() -> ModalSizeConstraints
fn default() -> ModalSizeConstraints
Returns the “default value” for a type. Read more
Source§impl PartialEq for ModalSizeConstraints
impl PartialEq for ModalSizeConstraints
impl Copy for ModalSizeConstraints
impl Eq for ModalSizeConstraints
impl StructuralPartialEq for ModalSizeConstraints
Auto Trait Implementations§
impl Freeze for ModalSizeConstraints
impl RefUnwindSafe for ModalSizeConstraints
impl Send for ModalSizeConstraints
impl Sync for ModalSizeConstraints
impl Unpin for ModalSizeConstraints
impl UnwindSafe for ModalSizeConstraints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.