[][src]Struct core_extensions::type_asserts::AssertEq3

pub struct AssertEq3<A: ?Sized, B: ?Sized, C: ?Sized> where
    A: TypeIdentity<Type = B>,
    A: TypeIdentity<Type = C>, 
{ /* fields omitted */ }

Struct used to assert that its type parameters are the same type.

Example

use core_extensions::type_asserts::AssertEq3;

let _:AssertEq3<u32,u32,u32>;
let _=AssertEq3::new( &0u32, &0u32, &0u32 );

Non-compiling

This example deliberately fails to compile
let _:AssertEq3<(),u32,u32>;
let _=AssertEq3::new( &(), &0u32, &0u32 );
This example deliberately fails to compile
let _:AssertEq3<u32,(),u32>;
let _=AssertEq3::new( &0u32, &(), &0u32 );
This example deliberately fails to compile
let _:AssertEq3<u32,u32,()>;
let _=AssertEq3::new( &0u32, &0u32, &() );

Methods

impl<A> AssertEq3<A, A, A>[src]

pub fn new(_: A, _: A, _: A) -> Self[src]

Constructs an AssertEq3.

Auto Trait Implementations

impl<A: ?Sized, B: ?Sized, C: ?Sized> Unpin for AssertEq3<A, B, C> where
    A: Unpin,
    B: Unpin,
    C: Unpin

impl<A: ?Sized, B: ?Sized, C: ?Sized> Send for AssertEq3<A, B, C> where
    A: Send,
    B: Send,
    C: Send

impl<A: ?Sized, B: ?Sized, C: ?Sized> Sync for AssertEq3<A, B, C> where
    A: Sync,
    B: Sync,
    C: Sync

impl<A: ?Sized, B: ?Sized, C: ?Sized> UnwindSafe for AssertEq3<A, B, C> where
    A: UnwindSafe,
    B: UnwindSafe,
    C: UnwindSafe

impl<A: ?Sized, B: ?Sized, C: ?Sized> RefUnwindSafe for AssertEq3<A, B, C> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe

Blanket Implementations

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

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

The error type returned when the conversion fails.

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

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

type Error = !

The type returned in the event of a conversion error.

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

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.

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

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

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