pub enum FloatingLabelBehavior {
Auto,
Always,
Never,
}Expand description
When a field’s label floats above the value (milestone 656) — the reference’s
FloatingLabelBehavior.
Variants§
Auto
Inside the field, in the value’s place, while it is empty and unfocused; floated once it is focused or holds something. The default.
Always
Always floated, so the hint shows in an empty field even before it is focused.
Never
Never floated: inside an empty field, in the value’s place, and gone once it holds something — a hint that a screen reader still reads as the field’s name.
Trait Implementations§
Source§impl Clone for FloatingLabelBehavior
impl Clone for FloatingLabelBehavior
impl Copy for FloatingLabelBehavior
Source§impl Debug for FloatingLabelBehavior
impl Debug for FloatingLabelBehavior
Source§impl Default for FloatingLabelBehavior
impl Default for FloatingLabelBehavior
impl Eq for FloatingLabelBehavior
Source§impl PartialEq for FloatingLabelBehavior
impl PartialEq for FloatingLabelBehavior
impl StructuralPartialEq for FloatingLabelBehavior
Auto Trait Implementations§
impl Freeze 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> 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