Trait darling_core::util::AsShape

source ·
pub trait AsShape {
    // Required method
    fn as_shape(&self) -> Shape;
}
Expand description

Get the “shape” of a fields container, such as a struct or variant.

Required Methods§

source

fn as_shape(&self) -> Shape

Get the “shape” of a fields container.

Implementations on Foreign Types§

source§

impl AsShape for Fields

source§

fn as_shape(&self) -> Shape

source§

impl AsShape for FieldsNamed

source§

fn as_shape(&self) -> Shape

source§

impl AsShape for FieldsUnnamed

source§

fn as_shape(&self) -> Shape

source§

impl AsShape for Variant

source§

fn as_shape(&self) -> Shape

source§

impl AsShape for DataStruct

source§

fn as_shape(&self) -> Shape

Implementors§

source§

impl AsShape for Shape

source§

impl<T> AsShape for darling_core::ast::Fields<T>