pub struct FeatureKey(/* private fields */);Expand description
功能身份。与裸 usize / nav id 区分,避免把任意整数误当成 feature。
Implementations§
Trait Implementations§
Source§impl Clone for FeatureKey
impl Clone for FeatureKey
impl Copy for FeatureKey
Source§impl Debug for FeatureKey
impl Debug for FeatureKey
impl Eq for FeatureKey
Source§impl From<usize> for FeatureKey
impl From<usize> for FeatureKey
Source§impl Hash for FeatureKey
impl Hash for FeatureKey
Source§impl Ord for FeatureKey
impl Ord for FeatureKey
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FeatureKey
impl PartialEq for FeatureKey
Source§impl PartialOrd for FeatureKey
impl PartialOrd for FeatureKey
impl StructuralPartialEq for FeatureKey
Auto Trait Implementations§
impl Forget for FeatureKey
impl Freeze for FeatureKey
impl Move for FeatureKey
impl RefUnwindSafe for FeatureKey
impl Send for FeatureKey
impl Sync for FeatureKey
impl Unpin for FeatureKey
impl UnsafeUnpin for FeatureKey
impl UnwindSafe for FeatureKey
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