Struct glyph_brush::OwnedText
source · pub struct OwnedText<X = Extra> {
pub text: String,
pub scale: PxScale,
pub font_id: FontId,
pub extra: X,
}
Fields§
§text: String
Text to render.
scale: PxScale
Pixel scale of text. Defaults to 16.
font_id: FontId
Font id to use for this section.
It must be known to the GlyphBrush
it is being used with,
either FontId::default()
or the return of
add_font
.
extra: X
Implementations§
Trait Implementations§
source§impl<X: PartialEq> PartialEq for OwnedText<X>
impl<X: PartialEq> PartialEq for OwnedText<X>
impl<X> StructuralPartialEq for OwnedText<X>
Auto Trait Implementations§
impl<X> RefUnwindSafe for OwnedText<X>where X: RefUnwindSafe,
impl<X> Send for OwnedText<X>where X: Send,
impl<X> Sync for OwnedText<X>where X: Sync,
impl<X> Unpin for OwnedText<X>where X: Unpin,
impl<X> UnwindSafe for OwnedText<X>where X: 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