pub struct TextPrimitive {
pub buffer: RcTextBuffer,
pub pos: Point,
pub color: RGBA8,
pub bounds_size: Size,
}Fields§
§buffer: RcTextBuffer§pos: Point§color: RGBA8§bounds_size: SizeImplementations§
Source§impl TextPrimitive
impl TextPrimitive
pub fn new(buffer: RcTextBuffer, pos: Point, color: RGBA8) -> Self
Trait Implementations§
Source§impl Clone for TextPrimitive
impl Clone for TextPrimitive
Source§fn clone(&self) -> TextPrimitive
fn clone(&self) -> TextPrimitive
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 Debug for TextPrimitive
impl Debug for TextPrimitive
Source§impl PartialEq for TextPrimitive
impl PartialEq for TextPrimitive
Source§fn eq(&self, other: &TextPrimitive) -> bool
fn eq(&self, other: &TextPrimitive) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextPrimitive
Auto Trait Implementations§
impl !RefUnwindSafe for TextPrimitive
impl !Send for TextPrimitive
impl !Sync for TextPrimitive
impl !UnwindSafe for TextPrimitive
impl Freeze for TextPrimitive
impl Unpin for TextPrimitive
impl UnsafeUnpin for TextPrimitive
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