pub trait WeightedResource {
    // Required methods
    fn weight(&self) -> f32;
    fn with_weight(&mut self, weight: f32) -> &Self;
}
Expand description

Resource can be ‘weighted’. This allows use in uri_routes, after digestion to sort paths in the final required. order.

Required Methods§

source

fn weight(&self) -> f32

The sorting weight value of this.

source

fn with_weight(&mut self, weight: f32) -> &Self

Determines the ordering weight to be used by pre-digestion sorting.

Object Safety§

This trait is not object safe.

Implementors§