pub struct LabelValue(/* private fields */);
Expand description
A single value inside a label.
This is represented as a 32-bit signed integer, with a couple of helper function to get its value as usize/isize.
Implementations§
Source§impl LabelValue
impl LabelValue
Sourcepub fn new(value: i32) -> LabelValue
pub fn new(value: i32) -> LabelValue
Create a LabelValue
with the given value
Trait Implementations§
Source§impl Clone for LabelValue
impl Clone for LabelValue
Source§fn clone(&self) -> LabelValue
fn clone(&self) -> LabelValue
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 LabelValue
impl Debug for LabelValue
Source§impl Display for LabelValue
impl Display for LabelValue
Source§impl From<i32> for LabelValue
impl From<i32> for LabelValue
Source§fn from(value: i32) -> LabelValue
fn from(value: i32) -> LabelValue
Converts to this type from the input type.
Source§impl From<isize> for LabelValue
impl From<isize> for LabelValue
Source§fn from(value: isize) -> LabelValue
fn from(value: isize) -> LabelValue
Converts to this type from the input type.
Source§impl From<u32> for LabelValue
impl From<u32> for LabelValue
Source§fn from(value: u32) -> LabelValue
fn from(value: u32) -> LabelValue
Converts to this type from the input type.
Source§impl From<usize> for LabelValue
impl From<usize> for LabelValue
Source§fn from(value: usize) -> LabelValue
fn from(value: usize) -> LabelValue
Converts to this type from the input type.
Source§impl Hash for LabelValue
impl Hash for LabelValue
Source§impl Ord for LabelValue
impl Ord for LabelValue
Source§fn cmp(&self, other: &LabelValue) -> Ordering
fn cmp(&self, other: &LabelValue) -> 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<LabelValue> for i32
impl PartialEq<LabelValue> for i32
Source§impl PartialEq<i32> for LabelValue
impl PartialEq<i32> for LabelValue
Source§impl PartialEq for LabelValue
impl PartialEq for LabelValue
Source§impl PartialOrd for LabelValue
impl PartialOrd for LabelValue
impl Copy for LabelValue
impl Eq for LabelValue
impl StructuralPartialEq for LabelValue
Auto Trait Implementations§
impl Freeze for LabelValue
impl RefUnwindSafe for LabelValue
impl Send for LabelValue
impl Sync for LabelValue
impl Unpin for LabelValue
impl UnwindSafe for LabelValue
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