pub enum SymbolIconTextFit {
None,
Width,
Height,
Both,
}Expand description
Icon sizing mode relative to the label text box.
Variants§
None
Keep the icon at its nominal size.
Width
Stretch the icon to match text width.
Height
Stretch the icon to match text height.
Both
Stretch the icon to match both text width and height.
Trait Implementations§
Source§impl Clone for SymbolIconTextFit
impl Clone for SymbolIconTextFit
Source§fn clone(&self) -> SymbolIconTextFit
fn clone(&self) -> SymbolIconTextFit
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 SymbolIconTextFit
impl Debug for SymbolIconTextFit
Source§impl Default for SymbolIconTextFit
impl Default for SymbolIconTextFit
Source§fn default() -> SymbolIconTextFit
fn default() -> SymbolIconTextFit
Returns the “default value” for a type. Read more
Source§impl FromFeatureStateProperty for SymbolIconTextFit
impl FromFeatureStateProperty for SymbolIconTextFit
Source§fn from_feature_state_property(_prop: &PropertyValue) -> Option<Self>
fn from_feature_state_property(_prop: &PropertyValue) -> Option<Self>
Attempt to convert a property value. Returns
None when the
PropertyValue variant does not map to Self.Source§impl Hash for SymbolIconTextFit
impl Hash for SymbolIconTextFit
Source§impl Ord for SymbolIconTextFit
impl Ord for SymbolIconTextFit
Source§fn cmp(&self, other: &SymbolIconTextFit) -> Ordering
fn cmp(&self, other: &SymbolIconTextFit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SymbolIconTextFit
impl PartialEq for SymbolIconTextFit
Source§impl PartialOrd for SymbolIconTextFit
impl PartialOrd for SymbolIconTextFit
Source§impl StyleInterpolatable for SymbolIconTextFit
impl StyleInterpolatable for SymbolIconTextFit
Source§fn interpolate(a: &Self, b: &Self, t: f32) -> Self
fn interpolate(a: &Self, b: &Self, t: f32) -> Self
Sample between two stop values.
impl Copy for SymbolIconTextFit
impl Eq for SymbolIconTextFit
impl StructuralPartialEq for SymbolIconTextFit
Auto Trait Implementations§
impl Freeze for SymbolIconTextFit
impl RefUnwindSafe for SymbolIconTextFit
impl Send for SymbolIconTextFit
impl Sync for SymbolIconTextFit
impl Unpin for SymbolIconTextFit
impl UnsafeUnpin for SymbolIconTextFit
impl UnwindSafe for SymbolIconTextFit
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