pub struct ChartLegend { /* private fields */ }
Implementations§
§impl ChartLegend
impl ChartLegend
pub fn new() -> Self
pub fn get_display(&mut self) -> &mut Option<bool>
pub fn display(self, value: impl Into<bool>) -> ChartLegend
pub fn get_labels(&mut self) -> &mut Option<LegendLabel>
pub fn labels(self, value: impl Into<LegendLabel>) -> ChartLegend
pub fn get_position(&mut self) -> &mut String
pub fn position(self, value: impl Into<String>) -> ChartLegend
Trait Implementations§
source§impl Clone for ChartLegend
impl Clone for ChartLegend
source§fn clone(&self) -> ChartLegend
fn clone(&self) -> ChartLegend
Returns a copy of the value. Read more
1.0.0 · 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 ChartLegend
impl Debug for ChartLegend
source§impl Default for ChartLegend
impl Default for ChartLegend
source§fn default() -> ChartLegend
fn default() -> ChartLegend
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ChartLegend
impl<'de> Deserialize<'de> for ChartLegend
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for ChartLegend
impl Ord for ChartLegend
source§fn cmp(&self, other: &ChartLegend) -> Ordering
fn cmp(&self, other: &ChartLegend) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ChartLegend
impl PartialEq for ChartLegend
source§impl PartialOrd for ChartLegend
impl PartialOrd for ChartLegend
source§impl Serialize for ChartLegend
impl Serialize for ChartLegend
impl Eq for ChartLegend
impl StructuralPartialEq for ChartLegend
Auto Trait Implementations§
impl Freeze for ChartLegend
impl RefUnwindSafe for ChartLegend
impl Send for ChartLegend
impl Sync for ChartLegend
impl Unpin for ChartLegend
impl UnwindSafe for ChartLegend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)