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: Size
Implementations§
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 · 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
impl StructuralPartialEq for TextPrimitive
Auto Trait Implementations§
impl Freeze for TextPrimitive
impl !RefUnwindSafe for TextPrimitive
impl !Send for TextPrimitive
impl !Sync for TextPrimitive
impl Unpin for TextPrimitive
impl !UnwindSafe 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