pub struct Format<Font> {
pub width: Length,
pub height: Length,
pub size: Option<Pixels>,
pub font: Option<Font>,
pub line_height: LineHeight,
pub align_x: Alignment,
pub align_y: Vertical,
pub shaping: Shaping,
pub wrapping: Wrapping,
}
Expand description
Fields§
§width: Length
§height: Length
§size: Option<Pixels>
§font: Option<Font>
§line_height: LineHeight
§align_x: Alignment
§align_y: Vertical
§shaping: Shaping
§wrapping: Wrapping
Trait Implementations§
impl<Font: Copy> Copy for Format<Font>
Auto Trait Implementations§
impl<Font> Freeze for Format<Font>where
Font: Freeze,
impl<Font> RefUnwindSafe for Format<Font>where
Font: RefUnwindSafe,
impl<Font> Send for Format<Font>where
Font: Send,
impl<Font> Sync for Format<Font>where
Font: Sync,
impl<Font> Unpin for Format<Font>where
Font: Unpin,
impl<Font> UnwindSafe for Format<Font>where
Font: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.