diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,9 +1,12 @@ +#![feature(box_syntax)] + use color::Color; pub mod color; -pub mod transform; pub mod pattern; +pub mod transform; pub trait Sample { fn sample(&mut self, x: f64, y: f64) -> Color; + fn clone(&self) -> Box<dyn Sample>; } |