#[repr(i32)]pub enum PbUnitSystem {
Metric = 1,
Imperial = 2,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PbUnitSystem
impl Clone for PbUnitSystem
Source§fn clone(&self) -> PbUnitSystem
fn clone(&self) -> PbUnitSystem
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 moreSource§impl Debug for PbUnitSystem
impl Debug for PbUnitSystem
Source§impl Default for PbUnitSystem
impl Default for PbUnitSystem
Source§fn default() -> PbUnitSystem
fn default() -> PbUnitSystem
Returns the “default value” for a type. Read more
Source§impl From<PbUnitSystem> for i32
impl From<PbUnitSystem> for i32
Source§fn from(value: PbUnitSystem) -> i32
fn from(value: PbUnitSystem) -> i32
Converts to this type from the input type.
Source§impl Hash for PbUnitSystem
impl Hash for PbUnitSystem
Source§impl Ord for PbUnitSystem
impl Ord for PbUnitSystem
Source§fn cmp(&self, other: &PbUnitSystem) -> Ordering
fn cmp(&self, other: &PbUnitSystem) -> 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 for PbUnitSystem
impl PartialEq for PbUnitSystem
Source§impl PartialOrd for PbUnitSystem
impl PartialOrd for PbUnitSystem
impl Copy for PbUnitSystem
impl Eq for PbUnitSystem
impl StructuralPartialEq for PbUnitSystem
Auto Trait Implementations§
impl Freeze for PbUnitSystem
impl RefUnwindSafe for PbUnitSystem
impl Send for PbUnitSystem
impl Sync for PbUnitSystem
impl Unpin for PbUnitSystem
impl UnwindSafe for PbUnitSystem
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