Skip to main content

Family

Trait Family 

Source
pub trait Family {
    const ACCEPTS: &'static [&'static str];
}
Expand description

A route family’s accepted floors, as a type — generated by app_routes! for each "prefix" => ["floor", …] entry in its families block, and handed to declares_expectation_in so the acceptance check can run in a const.

Required Associated Constants§

Source

const ACCEPTS: &'static [&'static str]

The floors this family accepts.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§