#[non_exhaustive]pub struct XGridLine<XY: Tick> {
pub width: RwSignal<f64>,
pub colour: RwSignal<Colour>,
pub ticks: TickLabels<XY>,
}Expand description
Builds a tick-aligned grid line across the inner chart area.
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.width: RwSignal<f64>Width of the grid line.
colour: RwSignal<Colour>Colour of the grid line.
ticks: TickLabels<XY>Ticks to align the grid line to.
Implementations§
Source§impl<XY: Tick> XGridLine<XY>
impl<XY: Tick> XGridLine<XY>
Sourcepub fn from_ticks(ticks: impl Into<TickLabels<XY>>) -> Self
pub fn from_ticks(ticks: impl Into<TickLabels<XY>>) -> Self
Creates a new grid line from a set of ticks.
Sourcepub fn with_colour(self, colour: impl Into<Colour>) -> Self
pub fn with_colour(self, colour: impl Into<Colour>) -> Self
Sets the colour of the grid line.
Trait Implementations§
Source§impl<X: Tick, Y: Tick> IntoInner<X, Y> for XGridLine<X>
impl<X: Tick, Y: Tick> IntoInner<X, Y> for XGridLine<X>
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.
impl<XY: Tick> StructuralPartialEq for XGridLine<XY>
Auto Trait Implementations§
impl<XY> Freeze for XGridLine<XY>
impl<XY> RefUnwindSafe for XGridLine<XY>
impl<XY> Send for XGridLine<XY>
impl<XY> Sync for XGridLine<XY>
impl<XY> Unpin for XGridLine<XY>
impl<XY> UnwindSafe for XGridLine<XY>
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>,
Marker: ?Sized,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
Marker: ?Sized,
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>,
Marker: ?Sized,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
Marker: ?Sized,
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.