[][src]Trait soak::Columns

pub unsafe trait Columns: Fields {
    type Pointers: BorrowMut<[NonNull<u8>]>;
    fn dangling() -> Self::Pointers;
}

Metadata required to use a struct in a RawTable.

This trait should not normally be implemented by hand. Instead, use #[derive(Columns)]- this will safely generate the appropriate trait impl.

Safety

  • Pointers must be a fixed-size array matching Fields::SIZES and Fields::ALIGNS in length.
  • dangling() must contain ptr::NonNull::dangling().

Associated Types

type Pointers: BorrowMut<[NonNull<u8>]>

A fixed-size array of pointers to field arrays.

Loading content...

Required methods

fn dangling() -> Self::Pointers

An empty value for Self::Pointers.

Loading content...

Implementors

Loading content...