pub enum FloatingLabelBehavior {
Never,
Auto,
Always,
}Expand description
Defines how the floating label should behave.
See also:
InputDecoration::floating_label_behaviorwhich defines the behavior forInputDecoration::labelorInputDecoration::label_text.FloatingLabelAlignmentwhich defines where the floating label should displayed.
Variants§
Never
The label will always be positioned within the content, or hidden.
Auto
The label will float when the input is focused, or has content.
Always
The label will always float above the content.
Trait Implementations§
Source§impl Clone for FloatingLabelBehavior
impl Clone for FloatingLabelBehavior
impl Copy for FloatingLabelBehavior
Source§impl Debug for FloatingLabelBehavior
impl Debug for FloatingLabelBehavior
impl Eq for FloatingLabelBehavior
Source§impl Hash for FloatingLabelBehavior
impl Hash for FloatingLabelBehavior
Source§impl PartialEq for FloatingLabelBehavior
impl PartialEq for FloatingLabelBehavior
impl StructuralPartialEq for FloatingLabelBehavior
Auto Trait Implementations§
impl Forget for FloatingLabelBehavior
impl Freeze for FloatingLabelBehavior
impl Move for FloatingLabelBehavior
impl RefUnwindSafe for FloatingLabelBehavior
impl Send for FloatingLabelBehavior
impl Sync for FloatingLabelBehavior
impl Unpin for FloatingLabelBehavior
impl UnsafeUnpin for FloatingLabelBehavior
impl UnwindSafe for FloatingLabelBehavior
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.