pub struct ShrinkItem {
pub base: i32,
pub min: i32,
pub shrink: i32,
}Expand description
縮小対象のアイテム 1 つ分の入力。
Fields§
§base: i32縮小前の主軸サイズ。
min: i32下限。自動最小サイズと min-width 指定の大きい方。
shrink: i32flex-shrink 係数。0 なら縮まない。
Trait Implementations§
Source§impl Clone for ShrinkItem
impl Clone for ShrinkItem
Source§fn clone(&self) -> ShrinkItem
fn clone(&self) -> ShrinkItem
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 ShrinkItem
Source§impl Debug for ShrinkItem
impl Debug for ShrinkItem
impl Eq for ShrinkItem
Source§impl PartialEq for ShrinkItem
impl PartialEq for ShrinkItem
Source§fn eq(&self, other: &ShrinkItem) -> bool
fn eq(&self, other: &ShrinkItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShrinkItem
Auto Trait Implementations§
impl Freeze for ShrinkItem
impl RefUnwindSafe for ShrinkItem
impl Send for ShrinkItem
impl Sync for ShrinkItem
impl Unpin for ShrinkItem
impl UnsafeUnpin for ShrinkItem
impl UnwindSafe for ShrinkItem
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.