pub struct TextElementConfig<'a> {
pub text: OwnedOrRef<'a, str>,
pub config: TextConfig,
pub style: TextStyle,
}Expand description
Leaf text element configuration.
Fields§
§text: OwnedOrRef<'a, str>Text content.
config: TextConfigText metrics and wrapping config.
style: TextStyleText paint/style settings.
Trait Implementations§
Source§impl<'a> Clone for TextElementConfig<'a>
impl<'a> Clone for TextElementConfig<'a>
Source§fn clone(&self) -> TextElementConfig<'a>
fn clone(&self) -> TextElementConfig<'a>
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 moreSource§impl<'a> Debug for TextElementConfig<'a>
impl<'a> Debug for TextElementConfig<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TextElementConfig<'a>
impl<'a> !UnwindSafe for TextElementConfig<'a>
impl<'a> Freeze for TextElementConfig<'a>
impl<'a> Send for TextElementConfig<'a>
impl<'a> Sync for TextElementConfig<'a>
impl<'a> Unpin for TextElementConfig<'a>
impl<'a> UnsafeUnpin for TextElementConfig<'a>
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<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.