[][src]Trait const_layout::EqAlign

pub unsafe trait EqAlign<Rhs> { }

EqAlign

Implemented for types with same mem::align_of value

use core::mem::align_of;
 
use const_layout::EqAlign;
 
fn must_have_same_align<I: EqAlign<O>, O>(input: I) -> O {
    assert_eq!(align_of::<I>(), align_of::<O>());
    unimplemented!()
}

Implementors

Loading content...