pub struct Layout<'a> {
pub width: Length,
pub height: Length,
pub padding: Padding,
pub placeholder: &'a str,
pub font: Option<Font>,
pub size: Option<Pixels>,
pub line_height: Option<LineHeight>,
pub alignment: Alignment,
pub multiline: Option<Wrapping>,
pub is_secure: bool,
}Fields§
§width: Length§height: Length§padding: Padding§placeholder: &'a str§font: Option<Font>§size: Option<Pixels>§line_height: Option<LineHeight>§alignment: Alignment§multiline: Option<Wrapping>§is_secure: boolAuto Trait Implementations§
impl<'a> Freeze for Layout<'a>
impl<'a> RefUnwindSafe for Layout<'a>
impl<'a> Send for Layout<'a>
impl<'a> Sync for Layout<'a>
impl<'a> Unpin for Layout<'a>
impl<'a> UnsafeUnpin for Layout<'a>
impl<'a> UnwindSafe for Layout<'a>
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