Skip to main content

BehaviorBase

Trait BehaviorBase 

Source
pub trait BehaviorBase {
    type Base;

    // Required method
    fn base(&self) -> &Self::Base;
}
Expand description

Static projection from a composed behavior to its authored base behavior.

Wrappers preserve this associated type, so inspection never depends on wrapper nesting depth or a positional path.

Required Associated Types§

Required Methods§

Source

fn base(&self) -> &Self::Base

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§