1 2 3 4 5 6 7 8 9 10 11 12
use super::RecordConfig; pub trait Record where Self: Sized, { fn record(self) -> Self { self.record_with(RecordConfig::default()) } fn record_with(self, cfg: RecordConfig) -> Self; }