pub struct Marker { /* private fields */ }Expand description
A marker on a chart data point or series (used in line, scatter, radar charts).
Implementations§
Source§impl Marker
impl Marker
Sourcepub const fn new(style: XlMarkerStyle) -> Self
pub const fn new(style: XlMarkerStyle) -> Self
Create a new marker with the given style.
Sourcepub const fn with_size(style: XlMarkerStyle, size: u32) -> Self
pub const fn with_size(style: XlMarkerStyle, size: u32) -> Self
Create a marker with style and size.
Sourcepub const fn style(&self) -> XlMarkerStyle
pub const fn style(&self) -> XlMarkerStyle
The marker style.
Sourcepub fn set_style(&mut self, style: XlMarkerStyle)
pub fn set_style(&mut self, style: XlMarkerStyle)
Set the marker style.
Sourcepub const fn format(&self) -> Option<&MarkerFormat>
pub const fn format(&self) -> Option<&MarkerFormat>
The marker format (fill + line).
Sourcepub fn format_mut(&mut self) -> &mut MarkerFormat
pub fn format_mut(&mut self) -> &mut MarkerFormat
Mutable access to the marker format. Creates a default if None.
Sourcepub fn set_format(&mut self, format: MarkerFormat)
pub fn set_format(&mut self, format: MarkerFormat)
Set the marker format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Marker
impl RefUnwindSafe for Marker
impl Send for Marker
impl Sync for Marker
impl Unpin for Marker
impl UnsafeUnpin for Marker
impl UnwindSafe for Marker
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