cgp-runtime 0.8.0-alpha

A language extension for Rust, with pluggable trait implementations at compile-time.
Documentation
1
2
3
4
5
6
7
8
9
use cgp::prelude::*;

use crate::HasRuntimeType;

#[cgp_getter]
#[use_type(HasRuntimeType.Runtime)]
pub trait HasRuntime {
    fn runtime(&self) -> &Runtime;
}