pub struct FontProps {
pub size: ExtractorField<FontSize>,
pub family: ExtractorField<FontFamily>,
pub weight: ExtractorField<FontWeight>,
pub style: ExtractorField<FontStyle>,
}Fields§
§size: ExtractorField<FontSize>§family: ExtractorField<FontFamily>§weight: ExtractorField<FontWeight>§style: ExtractorField<FontStyle>Implementations§
Source§impl FontProps
impl FontProps
pub fn read_style(&mut self, cx: &mut StyleCx<'_>, style: &Style) -> bool
pub fn read(&mut self, cx: &mut StyleCx<'_>) -> bool
pub fn read_explicit( &mut self, style: &Style, fallback: &Style, now: &Instant, request_transition: &mut bool, ) -> bool
pub fn size(&self) -> <FontSize as StylePropReader>::Type
pub fn family(&self) -> <FontFamily as StylePropReader>::Type
pub fn weight(&self) -> <FontWeight as StylePropReader>::Type
pub fn style(&self) -> <FontStyle as StylePropReader>::Type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FontProps
impl !RefUnwindSafe for FontProps
impl !Send for FontProps
impl !Sync for FontProps
impl Unpin for FontProps
impl !UnwindSafe for FontProps
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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