pub struct LabeledStop {
pub position: f32,
pub label: String,
}Expand description
A labeled stop in a legend.
Fields§
§position: f32Normalized position in [0.0, 1.0].
label: StringHuman-readable label for this stop.
Trait Implementations§
Source§impl Clone for LabeledStop
impl Clone for LabeledStop
Source§fn clone(&self) -> LabeledStop
fn clone(&self) -> LabeledStop
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LabeledStop
impl RefUnwindSafe for LabeledStop
impl Send for LabeledStop
impl Sync for LabeledStop
impl Unpin for LabeledStop
impl UnsafeUnpin for LabeledStop
impl UnwindSafe for LabeledStop
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