Trait Readonly

Source
pub trait Readonly {
    type Type;

    // Required method
    fn type_(&self) -> Self::Type;
}
Expand description

A trait for readonly versions of types.

Required Associated Types§

Source

type Type

The type that the readonly version is for.

Required Methods§

Source

fn type_(&self) -> Self::Type

Converts the readonly version to the original type.

Implementors§