[][src]Struct blair_mountain::example::GenericExample

#[repr(transparent)]
pub struct GenericExample<T: Copy, U>(_)
where
    U: Copy + Clone
;

An example union with generics

Methods

impl<T: Copy, U> GenericExample<T, U> where
    U: Copy + Clone
[src]

pub fn new_one(val: T) -> Self[src]

pub unsafe fn get_one(&self) -> &T[src]

pub unsafe fn get_one_mut(&mut self) -> &mut T[src]

pub unsafe fn set_one(&mut self, new: T)[src]

pub unsafe fn into_one(self) -> T[src]

pub fn new_two(val: U) -> Self[src]

pub unsafe fn get_two(&self) -> &U[src]

pub unsafe fn get_two_mut(&mut self) -> &mut U[src]

pub unsafe fn set_two(&mut self, new: U)[src]

pub unsafe fn into_two(self) -> U[src]

Auto Trait Implementations

impl<T, U> RefUnwindSafe for GenericExample<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for GenericExample<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for GenericExample<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for GenericExample<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for GenericExample<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.