pub struct Text<'a> {
pub text: StrSource<'a>,
pub style: TextStyle<'a>,
pub offset: LogicalPoint,
pub options: TextOptions,
}Fields§
§text: StrSource<'a>§style: TextStyle<'a>§offset: LogicalPoint§options: TextOptionsImplementations§
Source§impl<'a> Text<'a>
impl<'a> Text<'a>
Sourcepub fn text(self, value: impl Into<StrSource<'a>>) -> Self
pub fn text(self, value: impl Into<StrSource<'a>>) -> Self
sets Self::text
Sourcepub fn style(self, value: TextStyle<'a>) -> Self
pub fn style(self, value: TextStyle<'a>) -> Self
sets Self::style
Sourcepub fn offset(self, value: LogicalPoint) -> Self
pub fn offset(self, value: LogicalPoint) -> Self
sets Self::offset
Sourcepub fn options(self, value: TextOptions) -> Self
pub fn options(self, value: TextOptions) -> Self
sets Self::options
Trait Implementations§
impl<'a> Copy for Text<'a>
Auto Trait Implementations§
impl<'a> !Send for Text<'a>
impl<'a> !Sync for Text<'a>
impl<'a> Forget for Text<'a>
impl<'a> Freeze for Text<'a>
impl<'a> Move for Text<'a>
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> Unpin for Text<'a>
impl<'a> UnsafeUnpin for Text<'a>where
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
*const Argument<'a> is !null: UnsafeUnpin,
&'a [([u8; 4], u32)]: UnsafeUnpin,
&'a [([u8; 4], f32)]: UnsafeUnpin,
impl<'a> UnwindSafe for Text<'a>where
&'a str: UnwindSafe,
NonNull<u8>: UnwindSafe,
NonNull<Argument<'a>>: UnwindSafe,
&'a [([u8; 4], u32)]: UnwindSafe,
&'a [([u8; 4], f32)]: UnwindSafe,
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