#[non_exhaustive]pub struct InsetLegend {
pub edge: RwSignal<Edge>,
pub legend: Legend,
}Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.edge: RwSignal<Edge>Edge of the chart area to place the legend.
legend: LegendLegend to display. Relies on the internal anchor signal. See Legend for details.
Implementations§
Source§impl InsetLegend
impl InsetLegend
Sourcepub fn top_left() -> Self
pub fn top_left() -> Self
Creates a new inset legend placed at the top-left corner of the chart area.
Sourcepub fn top_right() -> Self
pub fn top_right() -> Self
Creates a new inset legend placed at the top-right corner of the chart area.
Sourcepub fn bottom_left() -> Self
pub fn bottom_left() -> Self
Creates a new inset legend placed at the bottom-left corner of the chart area.
Sourcepub fn bottom() -> Self
pub fn bottom() -> Self
Creates a new inset legend placed at the bottom-middle of the chart area.
Sourcepub fn bottom_right() -> Self
pub fn bottom_right() -> Self
Creates a new inset legend placed at the bottom-right corner of the chart area.
Trait Implementations§
Source§impl Clone for InsetLegend
impl Clone for InsetLegend
Source§fn clone(&self) -> InsetLegend
fn clone(&self) -> InsetLegend
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 moreSource§impl Debug for InsetLegend
impl Debug for InsetLegend
Source§impl<X: Tick, Y: Tick> From<InsetLegend> for InnerLayout<X, Y>
impl<X: Tick, Y: Tick> From<InsetLegend> for InnerLayout<X, Y>
Source§fn from(inner: InsetLegend) -> Self
fn from(inner: InsetLegend) -> Self
Converts to this type from the input type.
Source§impl<X: Tick, Y: Tick> From<InsetLegend> for Vec<InnerLayout<X, Y>>
impl<X: Tick, Y: Tick> From<InsetLegend> for Vec<InnerLayout<X, Y>>
Source§fn from(inner: InsetLegend) -> Self
fn from(inner: InsetLegend) -> Self
Converts to this type from the input type.
Source§impl<X: Tick, Y: Tick> IntoInner<X, Y> for InsetLegend
impl<X: Tick, Y: Tick> IntoInner<X, Y> for InsetLegend
Source§fn into_inner(self) -> InnerLayout<X, Y>
fn into_inner(self) -> InnerLayout<X, Y>
Create an inner layout from the type. See IntoInner for details.
Source§impl PartialEq for InsetLegend
impl PartialEq for InsetLegend
Source§fn eq(&self, other: &InsetLegend) -> bool
fn eq(&self, other: &InsetLegend) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InsetLegend
Auto Trait Implementations§
impl Freeze for InsetLegend
impl RefUnwindSafe for InsetLegend
impl Send for InsetLegend
impl Sync for InsetLegend
impl Unpin for InsetLegend
impl UnsafeUnpin for InsetLegend
impl UnwindSafe for InsetLegend
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§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 moreSource§impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
fn into_element_maybe_signal(self) -> ElementMaybeSignal<T>
Source§impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
fn into_element_maybe_signal_type(self) -> ElementMaybeSignalType<T>
Source§impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
fn into_elements_maybe_signal(self) -> ElementsMaybeSignal<T>
Source§impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
fn into_elements_maybe_signal_type(self) -> ElementsMaybeSignalType<T>
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.