pub enum TextStyle {
LargeTitle,
Title,
Title2,
Title3,
Headline,
Subheadline,
Body,
Callout,
Footnote,
Caption,
Caption2,
}Expand description
SwiftUI.Font.TextStyle presets, reached through their static getters.
Variants§
Trait Implementations§
impl Copy for TextStyle
impl Eq for TextStyle
Source§impl From<LargeTitle> for TextStyle
impl From<LargeTitle> for TextStyle
Source§fn from(_: LargeTitle) -> Self
fn from(_: LargeTitle) -> Self
Converts to this type from the input type.
Source§impl From<Subheadline> for TextStyle
impl From<Subheadline> for TextStyle
Source§fn from(_: Subheadline) -> Self
fn from(_: Subheadline) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
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