rustc_transmute::layout

Trait Ref

Source
pub trait Ref:
    Debug
    + Hash
    + Eq
    + PartialEq
    + Copy
    + Clone {
    // Required methods
    fn min_align(&self) -> usize;
    fn size(&self) -> usize;
    fn is_mutable(&self) -> bool;
}

Required Methods§

Source

fn min_align(&self) -> usize

Source

fn size(&self) -> usize

Source

fn is_mutable(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Ref for !

Source§

fn min_align(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn is_mutable(&self) -> bool

Implementors§

Source§

impl<'tcx> Ref for Ref<'tcx>