1 2 3 4 5 6 7 8 9 10 11 12
use Object; use Device; use std::ops::Deref; impl Deref for Device { type Target = Object; fn deref(&self) -> &Object { &self.object } }