[−][src]Struct core_extensions::type_asserts::AssertEq4
Struct used to assert that its type parameters are the same type.
Example
use core_extensions::type_asserts::AssertEq4; let _:AssertEq4<u32,u32,u32,u32>; let _=AssertEq4::new( &0u32, &0u32, &0u32, &0u32 );
Non-compiling
ⓘThis example deliberately fails to compile
let _:AssertEq4<(),u32,u32,u32>; let _=AssertEq4::new( &(), &0u32, &0u32, &0u32 );
ⓘThis example deliberately fails to compile
let _:AssertEq4<u32,(),u32,u32>; let _=AssertEq4::new( &0u32, &(), &0u32, &0u32 );
ⓘThis example deliberately fails to compile
let _:AssertEq4<u32,u32,(),u32>; let _=AssertEq4::new( &0u32, &0u32, &(), &0u32 );
ⓘThis example deliberately fails to compile
let _:AssertEq4<u32,u32,u32,()>; let _=AssertEq4::new( &0u32, &0u32, &0u32, &() );
Methods
impl<A> AssertEq4<A, A, A, A>
[src]
Auto Trait Implementations
impl<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized> Send for AssertEq4<A, B, C, D> where
A: Send,
B: Send,
C: Send,
D: Send,
A: Send,
B: Send,
C: Send,
D: Send,
impl<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized> Sync for AssertEq4<A, B, C, D> where
A: Sync,
B: Sync,
C: Sync,
D: Sync,
A: Sync,
B: Sync,
C: Sync,
D: Sync,
impl<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized> Unpin for AssertEq4<A, B, C, D> where
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
A: Unpin,
B: Unpin,
C: Unpin,
D: Unpin,
impl<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized> UnwindSafe for AssertEq4<A, B, C, D> where
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
A: UnwindSafe,
B: UnwindSafe,
C: UnwindSafe,
D: UnwindSafe,
impl<A: ?Sized, B: ?Sized, C: ?Sized, D: ?Sized> RefUnwindSafe for AssertEq4<A, B, C, D> where
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
A: RefUnwindSafe,
B: RefUnwindSafe,
C: RefUnwindSafe,
D: RefUnwindSafe,
Blanket Implementations
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The error type returned when the conversion fails.
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,