Struct std::mem::Discriminant
1.21.0 · source · pub struct Discriminant<T>(_);
Expand description
代表枚举的不透明类型。
有关更多信息,请参见此模块中的 discriminant
函数。
Trait Implementations§
source§impl<T> Clone for Discriminant<T>
impl<T> Clone for Discriminant<T>
source§fn clone(&self) -> Discriminant<T>
fn clone(&self) -> Discriminant<T>
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl<T> Debug for Discriminant<T>
impl<T> Debug for Discriminant<T>
source§impl<T> Hash for Discriminant<T>
impl<T> Hash for Discriminant<T>
source§impl<T> PartialEq<Discriminant<T>> for Discriminant<T>
impl<T> PartialEq<Discriminant<T>> for Discriminant<T>
impl<T> Copy for Discriminant<T>
impl<T> Eq for Discriminant<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Discriminant<T>where <T as DiscriminantKind>::Discriminant: RefUnwindSafe,
impl<T> Send for Discriminant<T>
impl<T> Sync for Discriminant<T>
impl<T> Unpin for Discriminant<T>
impl<T> UnwindSafe for Discriminant<T>where <T as DiscriminantKind>::Discriminant: UnwindSafe,
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
从拥有的值中借用。 Read more