pub struct CanvasPaintLabel {
pub text: String,
pub document_bounds: Bounds<Pixels>,
pub view_bounds: Bounds<Pixels>,
pub color: Option<Hsla>,
}Fields§
§text: String§document_bounds: Bounds<Pixels>§view_bounds: Bounds<Pixels>§color: Option<Hsla>Trait Implementations§
Source§impl Clone for CanvasPaintLabel
impl Clone for CanvasPaintLabel
Source§fn clone(&self) -> CanvasPaintLabel
fn clone(&self) -> CanvasPaintLabel
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 CanvasPaintLabel
impl Debug for CanvasPaintLabel
Source§impl PartialEq for CanvasPaintLabel
impl PartialEq for CanvasPaintLabel
Source§fn eq(&self, other: &CanvasPaintLabel) -> bool
fn eq(&self, other: &CanvasPaintLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CanvasPaintLabel
Auto Trait Implementations§
impl Freeze for CanvasPaintLabel
impl RefUnwindSafe for CanvasPaintLabel
impl Send for CanvasPaintLabel
impl Sync for CanvasPaintLabel
impl Unpin for CanvasPaintLabel
impl UnsafeUnpin for CanvasPaintLabel
impl UnwindSafe for CanvasPaintLabel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more