cgp-runtime 0.3.0

Context-generic programming core component traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
use cgp_core::prelude::*;

use crate::HasRuntimeType;

#[cgp_getter {
    context: App,
    provider: RuntimeGetter,
}]
pub trait HasRuntime: HasRuntimeType {
    fn runtime(&self) -> &Self::Runtime;
}