Skip to main content

zhc_ir/annotation/
traits.rs

1use std::fmt::Debug;
2
3/// Marker trait for types eligible as IR annotations.
4///
5/// Automatically implemented for all types satisfying the required bounds.
6/// No manual implementation is needed.
7pub trait Annotation: PartialEq + Eq + Debug + Clone + 'static {}
8
9impl<T> Annotation for T where T: PartialEq + Eq + Debug + Clone + 'static {}