pub struct UnitTypeID(/* private fields */);
Expand description
An ID identifying a unit type.
Trait Implementations§
Source§impl Clone for UnitTypeID
impl Clone for UnitTypeID
Source§fn clone(&self) -> UnitTypeID
fn clone(&self) -> UnitTypeID
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 UnitTypeID
impl Debug for UnitTypeID
Source§impl Default for UnitTypeID
impl Default for UnitTypeID
Source§fn default() -> UnitTypeID
fn default() -> UnitTypeID
Returns the “default value” for a type. Read more
Source§impl From<u16> for UnitTypeID
impl From<u16> for UnitTypeID
Source§fn from(n: u16) -> UnitTypeID
fn from(n: u16) -> UnitTypeID
Converts to this type from the input type.
Source§impl Hash for UnitTypeID
impl Hash for UnitTypeID
Source§impl PartialEq for UnitTypeID
impl PartialEq for UnitTypeID
Source§impl TryFrom<i16> for UnitTypeID
impl TryFrom<i16> for UnitTypeID
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§fn try_from(n: i16) -> Result<UnitTypeID, <UnitTypeID as TryFrom<i16>>::Error>
fn try_from(n: i16) -> Result<UnitTypeID, <UnitTypeID as TryFrom<i16>>::Error>
Performs the conversion.
Source§impl TryFrom<i32> for UnitTypeID
impl TryFrom<i32> for UnitTypeID
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§fn try_from(n: i32) -> Result<UnitTypeID, <UnitTypeID as TryFrom<i32>>::Error>
fn try_from(n: i32) -> Result<UnitTypeID, <UnitTypeID as TryFrom<i32>>::Error>
Performs the conversion.
Source§impl TryFrom<u32> for UnitTypeID
impl TryFrom<u32> for UnitTypeID
Source§type Error = TryFromIntError
type Error = TryFromIntError
The type returned in the event of a conversion error.
Source§fn try_from(n: u32) -> Result<UnitTypeID, <UnitTypeID as TryFrom<u32>>::Error>
fn try_from(n: u32) -> Result<UnitTypeID, <UnitTypeID as TryFrom<u32>>::Error>
Performs the conversion.
impl Copy for UnitTypeID
impl Eq for UnitTypeID
impl StructuralPartialEq for UnitTypeID
Auto Trait Implementations§
impl Freeze for UnitTypeID
impl RefUnwindSafe for UnitTypeID
impl Send for UnitTypeID
impl Sync for UnitTypeID
impl Unpin for UnitTypeID
impl UnwindSafe for UnitTypeID
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