pub struct DragValueStyle {
pub text: Option<Color>,
pub line: Option<Color>,
pub line_width: Option<f32>,
pub font_size: Option<f32>,
pub font_weight: Option<u16>,
}Fields§
§text: Option<Color>§line: Option<Color>§line_width: Option<f32>§font_size: Option<f32>§font_weight: Option<u16>Implementations§
Source§impl DragValueStyle
impl DragValueStyle
pub const fn new() -> DragValueStyle
pub const fn text(self, color: Color) -> DragValueStyle
pub const fn line(self, color: Color) -> DragValueStyle
pub const fn line_width(self, width: f32) -> DragValueStyle
pub const fn font_size(self, size: f32) -> DragValueStyle
pub const fn font_weight(self, weight: u16) -> DragValueStyle
Trait Implementations§
Source§impl Clone for DragValueStyle
impl Clone for DragValueStyle
Source§fn clone(&self) -> DragValueStyle
fn clone(&self) -> DragValueStyle
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 moreimpl Copy for DragValueStyle
Source§impl Debug for DragValueStyle
impl Debug for DragValueStyle
Source§impl Default for DragValueStyle
impl Default for DragValueStyle
Source§fn default() -> DragValueStyle
fn default() -> DragValueStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for DragValueStyle
impl PartialEq for DragValueStyle
impl StructuralPartialEq for DragValueStyle
Auto Trait Implementations§
impl Freeze for DragValueStyle
impl RefUnwindSafe for DragValueStyle
impl Send for DragValueStyle
impl Sync for DragValueStyle
impl Unpin for DragValueStyle
impl UnsafeUnpin for DragValueStyle
impl UnwindSafe for DragValueStyle
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