libspecr 0.1.41

standard library for specr lang
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::hash::Hash;
use std::fmt::Debug;

use crate::*;

/// A specr lang object.
/// Most of the types used in specr lang (std lib types and user-defined types)
/// will implement this trait.
///
/// A notable exception is closures.
pub trait Obj: GcCompat + Copy + Debug + Eq + Hash + Ord {}
impl<T> Obj for T where T: GcCompat + Copy + Debug + Eq + Hash + Ord {}