pub enum WindowSizePolicy {
Content,
User,
}Expand description
Defines how a windows size should be determined
Variants§
Content
Use the content of the window to determine the size.
If you use this option, your root widget will be passed infinite constraints; you are responsible for ensuring that your content picks an appropriate size.
User
Use the provided window size
Trait Implementations§
Source§impl Clone for WindowSizePolicy
impl Clone for WindowSizePolicy
Source§fn clone(&self) -> WindowSizePolicy
fn clone(&self) -> WindowSizePolicy
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 moreSource§impl Debug for WindowSizePolicy
impl Debug for WindowSizePolicy
Source§impl PartialEq for WindowSizePolicy
impl PartialEq for WindowSizePolicy
Source§fn eq(&self, other: &WindowSizePolicy) -> bool
fn eq(&self, other: &WindowSizePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WindowSizePolicy
impl Eq for WindowSizePolicy
impl StructuralPartialEq for WindowSizePolicy
Auto Trait Implementations§
impl Freeze for WindowSizePolicy
impl RefUnwindSafe for WindowSizePolicy
impl Send for WindowSizePolicy
impl Sync for WindowSizePolicy
impl Unpin for WindowSizePolicy
impl UnsafeUnpin for WindowSizePolicy
impl UnwindSafe for WindowSizePolicy
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.