Skip to main content

Capability

Trait Capability 

Source
pub trait Capability {
    type Value: ?Sized;

    const ID: CapabilityId;
}
Expand description

Associates a capability marker with its value type and stable identity.

Required Associated Constants§

Source

const ID: CapabilityId

Stable semantic identifier; not a display label.

Required Associated Types§

Source

type Value: ?Sized

The typed value that satisfies this capability.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§