Trait fuel_types::MemLocType
source · pub trait MemLocType<const ADDR: usize, const SIZE: usize> {
type Type;
const ADDR: usize = ADDR;
const SIZE: usize = SIZE;
const LOC: MemLoc<ADDR, SIZE> = _;
// Provided method
fn layout(loc: MemLoc<ADDR, SIZE>) -> LayoutType<ADDR, SIZE, Self> { ... }
}
Expand description
Trait that combines a memory location and a type.
Required Associated Types§
Provided Associated Constants§
Provided Methods§
sourcefn layout(loc: MemLoc<ADDR, SIZE>) -> LayoutType<ADDR, SIZE, Self>
fn layout(loc: MemLoc<ADDR, SIZE>) -> LayoutType<ADDR, SIZE, Self>
Combine a memory location and a type. This will only work if this trait is defined for the memory location.