Trait TypedGet

Source
pub trait TypedGet {
    type Type;

    // Required method
    fn get() -> Self::Type;
}
Expand description

A trait for querying a single value from a type defined in the trait.

It is not required that the value is constant.

Required Associated Types§

Source

type Type

The type which is returned.

Required Methods§

Source

fn get() -> Self::Type

Return the current value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§