pub struct Label { /* private fields */ }
Implementations§
Source§impl Label
impl Label
pub fn new() -> Self
pub fn show(self, show: bool) -> Self
pub fn position<P: Into<LabelPosition>>(self, position: P) -> Self
pub fn distance<F: Into<i64>>(self, distance: F) -> Self
pub fn rotate<S: Into<String>>(self, rotate: S) -> Self
pub fn offset<F: Into<i64>>(self, offset: (F, F)) -> Self
pub fn formatter<F: Into<Formatter>>(self, formatter: F) -> Self
pub fn color<C: Into<Color>>(self, color: C) -> Self
pub fn font_size<F: Into<i64>>(self, font_size: F) -> Self
pub fn font_weight<S: Into<String>>(self, font_weight: S) -> Self
pub fn padding<F: Into<i64>>(self, padding: (F, F, F, F)) -> Self
pub fn align<A: Into<LabelAlign>>(self, align: A) -> Self
pub fn vertical_align<V: Into<LabelVerticalAlign>>( self, vertical_align: V, ) -> Self
pub fn silent(self, silent: bool) -> Self
pub fn background_color<C: Into<Color>>(self, background_color: C) -> Self
pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self
pub fn border_width<F: Into<i64>>(self, border_width: F) -> Self
pub fn shadow_blur<F: Into<i64>>(self, shadow_blur: F) -> Self
pub fn shadow_offset_x<F: Into<i64>>(self, shadow_offset_x: F) -> Self
pub fn shadow_offset_y<F: Into<i64>>(self, shadow_offset_y: F) -> Self
Trait Implementations§
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
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