pub enum TextInkOverflow {
None,
AutoPad,
}Variants§
None
Do not apply any extra padding; tall glyph ink may be clipped if an ancestor clips.
AutoPad
Adds top/bottom padding to accommodate first/last-line ink extents when available.
Notes:
- This is best-effort: if ink metrics are unavailable, no padding is applied.
- If the widget is height-constrained, padding may be partially applied (or ignored).
Trait Implementations§
Source§impl Clone for TextInkOverflow
impl Clone for TextInkOverflow
Source§fn clone(&self) -> TextInkOverflow
fn clone(&self) -> TextInkOverflow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextInkOverflow
impl Debug for TextInkOverflow
Source§impl Default for TextInkOverflow
impl Default for TextInkOverflow
Source§fn default() -> TextInkOverflow
fn default() -> TextInkOverflow
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextInkOverflow
impl PartialEq for TextInkOverflow
impl Copy for TextInkOverflow
impl Eq for TextInkOverflow
impl StructuralPartialEq for TextInkOverflow
Auto Trait Implementations§
impl Freeze for TextInkOverflow
impl RefUnwindSafe for TextInkOverflow
impl Send for TextInkOverflow
impl Sync for TextInkOverflow
impl Unpin for TextInkOverflow
impl UnsafeUnpin for TextInkOverflow
impl UnwindSafe for TextInkOverflow
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