Builder16

Struct Builder16 

Source
pub struct Builder16<A, B, C, D, E, F = NeverPtr, G = NeverPtr, H = NeverPtr, I = NeverPtr, J = NeverPtr, K = NeverPtr, L = NeverPtr, M = NeverPtr, N = NeverPtr, O = NeverPtr, P = NeverPtr> { /* private fields */ }
Expand description

A builder for Union16.

An instance of this builder means that Union16 parameterized with the same type arguments are safe to construct.

Implementations§

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Source

pub const unsafe fn new_unchecked() -> Self

Assert that creating pointer unions of these types is safe.

§Safety

The pointer types must be erasable, and their alignment must meet the requirements of the target union type.

Source§

impl<A: ErasablePtr, B: ErasablePtr, C: ErasablePtr, D: ErasablePtr, E: ErasablePtr, F: ErasablePtr, G: ErasablePtr, H: ErasablePtr, I: ErasablePtr, J: ErasablePtr, K: ErasablePtr, L: ErasablePtr, M: ErasablePtr, N: ErasablePtr, O: ErasablePtr, P: ErasablePtr> Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Source

pub fn a( self, this: A, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn b( self, this: B, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn c( self, this: C, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn d( self, this: D, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn e( self, this: E, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn f( self, this: F, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn g( self, this: G, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn h( self, this: H, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn i( self, this: I, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn j( self, this: J, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn k( self, this: K, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn l( self, this: L, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn m( self, this: M, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn n( self, this: N, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn o( self, this: O, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Source

pub fn p( self, this: P, ) -> Union16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Construct a union at this variant.

Trait Implementations§

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Clone for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Debug for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Copy for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Auto Trait Implementations§

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Freeze for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> RefUnwindSafe for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Send for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
where A: Send, B: Send, C: Send, D: Send, E: Send, F: Send, G: Send, H: Send, I: Send, J: Send, K: Send, L: Send, M: Send, N: Send, O: Send, P: Send,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Sync for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
where A: Sync, B: Sync, C: Sync, D: Sync, E: Sync, F: Sync, G: Sync, H: Sync, I: Sync, J: Sync, K: Sync, L: Sync, M: Sync, N: Sync, O: Sync, P: Sync,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Unpin for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>
where A: Unpin, B: Unpin, C: Unpin, D: Unpin, E: Unpin, F: Unpin, G: Unpin, H: Unpin, I: Unpin, J: Unpin, K: Unpin, L: Unpin, M: Unpin, N: Unpin, O: Unpin, P: Unpin,

§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> UnwindSafe for Builder16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Erasable for T

Source§

const ACK_1_1_0: bool = true

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
Source§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
Source§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.