Trait tcgeneric::Instance

source ·
pub trait Instance: Send + Sync {
    type Class: Class;

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

A generic instance trait

Required Associated Types§

source

type Class: Class

The Class type of this instance

Required Methods§

source

fn class(&self) -> Self::Class

Returns the [Class] of this instance.

Implementors§