darling_core::util

Trait 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>