1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use std::sync::Arc; use crate::Setup; pub struct IntegrationSuite { setup: Arc<dyn Setup>, } impl IntegrationSuite { pub fn new(setup: impl Setup) -> IntegrationSuite { IntegrationSuite { setup: Arc::new(setup), } } }