[−][src]Enum ptr_union::Enum2
An unpacked version of Union2
.
Variants
Methods
impl<A: ErasablePtr, B: ErasablePtr> Enum2<A, B>
[src]
pub fn pack(self, builder: Builder2<A, B>) -> Union2<A, B>
[src]
Pack this loose enum into a pointer union.
pub unsafe fn pack_unchecked(self) -> Union2<A, B>
[src]
Pack this loose enum into a pointer union.
Safety
The pointer packed must be properly aligned. Note that only the actually packed pointer is restricted, not any other pointer type involved in this definition.
Trait Implementations
impl<A: Clone, B: Clone> Clone for Enum2<A, B>
[src]
fn clone(&self) -> Enum2<A, B>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Copy, B: Copy> Copy for Enum2<A, B>
[src]
impl<A: Debug, B: Debug> Debug for Enum2<A, B>
[src]
impl<A: Eq, B: Eq> Eq for Enum2<A, B>
[src]
impl<A: Hash, B: Hash> Hash for Enum2<A, B>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: PartialEq, B: PartialEq> PartialEq<Enum2<A, B>> for Enum2<A, B>
[src]
impl<A, B> StructuralEq for Enum2<A, B>
[src]
impl<A, B> StructuralPartialEq for Enum2<A, B>
[src]
Auto Trait Implementations
impl<A, B> Send for Enum2<A, B> where
A: Send,
B: Send,
A: Send,
B: Send,
impl<A, B> Sync for Enum2<A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<A, B> Unpin for Enum2<A, B> where
A: Unpin,
B: Unpin,
A: Unpin,
B: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erasable for T
[src]
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
[src]
const ACK_1_1_0: bool
[src]
fn erase(this: NonNull<Self>) -> NonNull<Erased>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,