#[non_exhaustive]pub struct RotatedLabel {
pub text: RwSignal<String>,
pub anchor: RwSignal<Anchor>,
}Expand description
Builds a rotated label to match the orientation of the axis it’s placed on.
Warning: does not wrap text. Extra text will not be clipped.
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.text: RwSignal<String>Text to display.
anchor: RwSignal<Anchor>Anchor of the label.
Implementations§
Trait Implementations§
Source§impl Clone for RotatedLabel
impl Clone for RotatedLabel
Source§fn clone(&self) -> RotatedLabel
fn clone(&self) -> RotatedLabel
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 RotatedLabel
impl Debug for RotatedLabel
Source§impl<XY: Tick> From<RotatedLabel> for EdgeLayout<XY>
impl<XY: Tick> From<RotatedLabel> for EdgeLayout<XY>
Source§fn from(inner: RotatedLabel) -> Self
fn from(inner: RotatedLabel) -> Self
Converts to this type from the input type.
Source§impl<XY: Tick> From<RotatedLabel> for Vec<EdgeLayout<XY>>
impl<XY: Tick> From<RotatedLabel> for Vec<EdgeLayout<XY>>
Source§fn from(inner: RotatedLabel) -> Self
fn from(inner: RotatedLabel) -> Self
Converts to this type from the input type.
Source§impl<XY: Tick> IntoEdge<XY> for RotatedLabel
impl<XY: Tick> IntoEdge<XY> for RotatedLabel
Source§fn into_edge(self) -> EdgeLayout<XY>
fn into_edge(self) -> EdgeLayout<XY>
Create an edge layout from the type. See IntoEdge for details.
Source§impl PartialEq for RotatedLabel
impl PartialEq for RotatedLabel
Source§fn eq(&self, other: &RotatedLabel) -> bool
fn eq(&self, other: &RotatedLabel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RotatedLabel
Auto Trait Implementations§
impl Freeze for RotatedLabel
impl RefUnwindSafe for RotatedLabel
impl Send for RotatedLabel
impl Sync for RotatedLabel
impl Unpin for RotatedLabel
impl UnsafeUnpin for RotatedLabel
impl UnwindSafe for RotatedLabel
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.