Struct metatensor::LabelValue 
source · #[repr(transparent)]pub struct LabelValue(_);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 LabelValue
 
impl PartialEq<LabelValue> for LabelValue
source§fn eq(&self, other: &LabelValue) -> bool
 
fn eq(&self, other: &LabelValue) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialEq<LabelValue> for i32
 
impl PartialEq<LabelValue> for i32
source§fn eq(&self, other: &LabelValue) -> bool
 
fn eq(&self, other: &LabelValue) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialEq<i32> for LabelValue
 
impl PartialEq<i32> for LabelValue
source§impl PartialOrd<LabelValue> for LabelValue
 
impl PartialOrd<LabelValue> for LabelValue
source§fn partial_cmp(&self, other: &LabelValue) -> Option<Ordering>
 
fn partial_cmp(&self, other: &LabelValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for LabelValue
impl Eq for LabelValue
impl StructuralEq for LabelValue
impl StructuralPartialEq for LabelValue
Auto Trait Implementations§
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