pub struct PlatformParagraphStyle {
pub include_font_padding: Option<bool>,
pub shaping: Option<TextShaping>,
}Expand description
Platform-specific settings of a paragraph. Compose’s PlatformParagraphStyle.
Fields§
§include_font_padding: Option<bool>When Some(true), the font’s line gap is added to the line height, as with Android’s
includeFontPadding. None and Some(false) add nothing.
shaping: Option<TextShaping>Shaping mode. None acts like TextShaping::Basic.
Trait Implementations§
Source§impl Clone for PlatformParagraphStyle
impl Clone for PlatformParagraphStyle
Source§fn clone(&self) -> PlatformParagraphStyle
fn clone(&self) -> PlatformParagraphStyle
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 PlatformParagraphStyle
Source§impl Debug for PlatformParagraphStyle
impl Debug for PlatformParagraphStyle
Source§impl Default for PlatformParagraphStyle
impl Default for PlatformParagraphStyle
Source§fn default() -> PlatformParagraphStyle
fn default() -> PlatformParagraphStyle
Returns the “default value” for a type. Read more
impl Eq for PlatformParagraphStyle
Source§impl Hash for PlatformParagraphStyle
impl Hash for PlatformParagraphStyle
Source§impl PartialEq for PlatformParagraphStyle
impl PartialEq for PlatformParagraphStyle
impl StructuralPartialEq for PlatformParagraphStyle
Auto Trait Implementations§
impl Forget for PlatformParagraphStyle
impl Freeze for PlatformParagraphStyle
impl Move for PlatformParagraphStyle
impl RefUnwindSafe for PlatformParagraphStyle
impl Send for PlatformParagraphStyle
impl Sync for PlatformParagraphStyle
impl Unpin for PlatformParagraphStyle
impl UnsafeUnpin for PlatformParagraphStyle
impl UnwindSafe for PlatformParagraphStyle
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more