pub struct Label { /* private fields */ }Implementations§
Source§impl Label
impl Label
pub fn new() -> Label
pub fn background_color<C>(self, background_color: C) -> Labelwhere
C: Color,
pub fn border_color<C>(self, border_color: C) -> Labelwhere
C: Color,
pub fn font(self, font: Font) -> Label
pub fn align(self, align: &str) -> Label
pub fn name_length(self, name_length: i32) -> Label
pub fn name_length_array(self, name_length: Vec<i32>) -> Label
Trait Implementations§
Source§impl Serialize for Label
impl Serialize for Label
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Label
impl !RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl !UnwindSafe for Label
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