pub struct ResizablePanel {
pub default_size: f32,
pub min_size: Option<f32>,
pub max_size: Option<f32>,
}Expand description
Configuration for a single panel in a resizable group.
Fields§
§default_size: f32Default size as a fraction (0.0..1.0).
min_size: Option<f32>Minimum size fraction.
max_size: Option<f32>Maximum size fraction.
Implementations§
Trait Implementations§
Source§impl Clone for ResizablePanel
impl Clone for ResizablePanel
Source§fn clone(&self) -> ResizablePanel
fn clone(&self) -> ResizablePanel
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 ResizablePanel
impl Debug for ResizablePanel
impl Copy for ResizablePanel
Auto Trait Implementations§
impl Freeze for ResizablePanel
impl RefUnwindSafe for ResizablePanel
impl Send for ResizablePanel
impl Sync for ResizablePanel
impl Unpin for ResizablePanel
impl UnsafeUnpin for ResizablePanel
impl UnwindSafe for ResizablePanel
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