[][src]Trait const_layout::EqSize

pub unsafe trait EqSize<Rhs> { }

EqSize

Implemented for types with same mem::size_of value

use core::mem::size_of;
 
use const_layout::EqSize;
 
fn must_have_same_size<I: EqSize<O>, O>(input: I) -> O {
    assert_eq!(size_of::<I>(), size_of::<O>());
    unimplemented!()
}
 

Implementors

Loading content...