pub enum LineHeightKind {
Variable,
Normal,
Tight,
Loose,
}Expand description
A line height, as AttributedString.LineHeight’s statics name it.
The initialiser taking an NSParagraphStyle is SwiftUI-internal, so the
statics are the public way in — and exact(points:) and
multiple(factor:) are the only two that take an argument.
Variants§
Trait Implementations§
Source§impl Clone for LineHeightKind
impl Clone for LineHeightKind
impl Copy for LineHeightKind
Source§impl Debug for LineHeightKind
impl Debug for LineHeightKind
impl Eq for LineHeightKind
Source§impl From<Loose> for LineHeightKind
impl From<Loose> for LineHeightKind
Source§impl From<Normal> for LineHeightKind
impl From<Normal> for LineHeightKind
Source§impl From<Tight> for LineHeightKind
impl From<Tight> for LineHeightKind
Source§impl From<Variable> for LineHeightKind
impl From<Variable> for LineHeightKind
Source§impl PartialEq for LineHeightKind
impl PartialEq for LineHeightKind
impl StructuralPartialEq for LineHeightKind
Auto Trait Implementations§
impl Freeze for LineHeightKind
impl RefUnwindSafe for LineHeightKind
impl Send for LineHeightKind
impl Sync for LineHeightKind
impl Unpin for LineHeightKind
impl UnsafeUnpin for LineHeightKind
impl UnwindSafe for LineHeightKind
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