Skip to main content

Declared

Trait Declared 

Source
pub trait Declared: Shaped {
    const SHAPE: Shape;

    // Provided method
    fn shape() -> &'static Shape { ... }
}
Expand description

A type wire! or wire_impl! declared, whose Shape is data.

Required Associated Constants§

Source

const SHAPE: Shape

Its declaration, the only one.

Provided Methods§

Source

fn shape() -> &'static Shape

Its shape.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§