pub struct InheritedText<'a> {
pub text: &'a [ResolvedTextStyle],
pub rtl: &'a [bool],
pub responsive: Option<ResponsiveTextEnv<'a>>,
}Expand description
Resolved inheritance paragraphs compile against: every box’s resolved text style and
direction (indexed by node slot; empty = defaults), plus the active responsive environment
(None when no @media / @container rule exists).
Fields§
§text: &'a [ResolvedTextStyle]§rtl: &'a [bool]§responsive: Option<ResponsiveTextEnv<'a>>Trait Implementations§
Source§impl<'a> Clone for InheritedText<'a>
impl<'a> Clone for InheritedText<'a>
impl<'a> Copy for InheritedText<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for InheritedText<'a>
impl<'a> !Send for InheritedText<'a>
impl<'a> !Sync for InheritedText<'a>
impl<'a> !UnwindSafe for InheritedText<'a>
impl<'a> Forget for InheritedText<'a>
impl<'a> Freeze for InheritedText<'a>
impl<'a> Move for InheritedText<'a>
impl<'a> Unpin for InheritedText<'a>
impl<'a> UnsafeUnpin for InheritedText<'a>where
&'a [TextStyle<ResolvedFamily>]: UnsafeUnpin,
&'a [bool]: UnsafeUnpin,
&'a MediaEnv: UnsafeUnpin,
&'a dyn Fn(NodeId) -> ContainerEnv: UnsafeUnpin,
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