#[repr(transparent)]pub struct FixedId(pub u64);Expand description
A strong type for type id.
Tuple Fields§
§0: u64Implementations§
Source§impl FixedId
impl FixedId
Sourcepub const fn from<Target: 'static + ?Sized + FixedTypeId>() -> Self
pub const fn from<Target: 'static + ?Sized + FixedTypeId>() -> Self
Get UniqueId of a type
Sourcepub const fn from_type_name(
type_name: &'static str,
version: Option<FixedVersion>,
) -> Self
pub const fn from_type_name( type_name: &'static str, version: Option<FixedVersion>, ) -> Self
Get UniqueId from a type name.
It can be used inside const context.
Trait Implementations§
Source§impl Ord for FixedId
impl Ord for FixedId
Source§impl PartialOrd for FixedId
impl PartialOrd for FixedId
impl Copy for FixedId
impl Eq for FixedId
impl StructuralPartialEq for FixedId
Auto Trait Implementations§
impl Freeze for FixedId
impl RefUnwindSafe for FixedId
impl Send for FixedId
impl Sync for FixedId
impl Unpin for FixedId
impl UnwindSafe for FixedId
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