pub enum LineHeightTrim {
FirstLineTop,
LastLineBottom,
Both,
None,
}Expand description
The line-height policy lives with the drawing-side text types, because a
DrawScope has to be able to name it too:
a run drawn through a canvas and a Text composable on the same screen must
resolve their line boxes by the same rule, and the only style a draw scope
can carry is the flat one from cranpose-ui-graphics.
Which edges of a text block give their leading back.
Variants§
Trait Implementations§
Source§impl Clone for LineHeightTrim
impl Clone for LineHeightTrim
Source§fn clone(&self) -> LineHeightTrim
fn clone(&self) -> LineHeightTrim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineHeightTrim
Source§impl Debug for LineHeightTrim
impl Debug for LineHeightTrim
Source§impl Default for LineHeightTrim
impl Default for LineHeightTrim
Source§fn default() -> LineHeightTrim
fn default() -> LineHeightTrim
Returns the “default value” for a type. Read more
impl Eq for LineHeightTrim
Source§impl Hash for LineHeightTrim
impl Hash for LineHeightTrim
Source§impl PartialEq for LineHeightTrim
impl PartialEq for LineHeightTrim
impl StructuralPartialEq for LineHeightTrim
Auto Trait Implementations§
impl Freeze for LineHeightTrim
impl RefUnwindSafe for LineHeightTrim
impl Send for LineHeightTrim
impl Sync for LineHeightTrim
impl Unpin for LineHeightTrim
impl UnsafeUnpin for LineHeightTrim
impl UnwindSafe for LineHeightTrim
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