Skip to main content

IField

Trait IField 

Source
pub trait IField: Copy {
    type Shape: IShape;

    // Required methods
    fn offset(&self) -> usize;
    fn shape(&self) -> Self::Shape;
}
Expand description

Interface for field information.

Required Associated Types§

Source

type Shape: IShape

The shape type.

Required Methods§

Source

fn offset(&self) -> usize

Byte offset of this field within the struct.

Source

fn shape(&self) -> Self::Shape

Shape of this field’s type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IField for &'static Field

Source§

type Shape = &'static Shape

Source§

fn offset(&self) -> usize

Source§

fn shape(&self) -> Self::Shape

Implementors§