pub struct FloatingLabelAlignment { /* private fields */ }Expand description
Defines where the floating label should be displayed within an
InputDecorator.
See also:
InputDecoration::floating_label_alignmentwhich defines the alignment forInputDecoration::labelorInputDecoration::label_text.FloatingLabelBehaviorwhich defines how the floating label should behave.
Implementations§
Source§impl FloatingLabelAlignment
impl FloatingLabelAlignment
Sourcepub const START: FloatingLabelAlignment
pub const START: FloatingLabelAlignment
Align the floating label on the leading edge of the InputDecorator.
For left-to-right text (TextDirection::Ltr), this is the left edge.
For right-to-left text (TextDirection::Rtl), this is the right edge.
Sourcepub const CENTER: FloatingLabelAlignment
pub const CENTER: FloatingLabelAlignment
Aligns the floating label to the center of an InputDecorator.
Trait Implementations§
Source§impl Clone for FloatingLabelAlignment
impl Clone for FloatingLabelAlignment
impl Copy for FloatingLabelAlignment
Source§impl Debug for FloatingLabelAlignment
impl Debug for FloatingLabelAlignment
Source§impl PartialEq for FloatingLabelAlignment
impl PartialEq for FloatingLabelAlignment
impl StructuralPartialEq for FloatingLabelAlignment
Auto Trait Implementations§
impl Forget for FloatingLabelAlignment
impl Freeze for FloatingLabelAlignment
impl Move for FloatingLabelAlignment
impl RefUnwindSafe for FloatingLabelAlignment
impl Send for FloatingLabelAlignment
impl Sync for FloatingLabelAlignment
impl Unpin for FloatingLabelAlignment
impl UnsafeUnpin for FloatingLabelAlignment
impl UnwindSafe for FloatingLabelAlignment
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