Skip to main content

Range

Trait Range 

Source
pub trait Range {
    type Target;
    type Value;

    // Required methods
    fn fixed(&self) -> Self::Target;
    fn accepted(&self, observed: Self::Value) -> Result<Self::Target, Outside>;
}
Expand description

A successfully admitted range and its reserved listener slot.

Required Associated Types§

Required Methods§

Source

fn fixed(&self) -> Self::Target

Source

fn accepted(&self, observed: Self::Value) -> Result<Self::Target, Outside>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§