[−][src]Struct ptr_union::Builder2
A builder for Union2
.
An instance of this builder means that Union2
parameterized
with the same type arguments are safe to construct.
Implementations
impl<A, B> Builder2<A, B>
[src]
pub const unsafe fn new_unchecked() -> Self
[src]
impl<A: ErasablePtr, B: ErasablePtr> Builder2<A, B>
[src]
pub fn a(self, this: A) -> Union2<A, B>
[src]
Construct a union at this variant.
pub fn b(self, this: B) -> Union2<A, B>
[src]
Construct a union at this variant.
Trait Implementations
impl<A, B> Clone for Builder2<A, B>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A, B> Copy for Builder2<A, B>
[src]
impl<A, B> Debug for Builder2<A, B>
[src]
Auto Trait Implementations
impl<A, B> Send for Builder2<A, B> where
A: Send,
B: Send,
A: Send,
B: Send,
impl<A, B> Sync for Builder2<A, B> where
A: Sync,
B: Sync,
A: Sync,
B: Sync,
impl<A, B> Unpin for Builder2<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>,