use crate::ContextLocation;
pub struct BuildContext {
pub location: ContextLocation,
_owner: Option<Box<dyn Send + Sync>>,
}
impl BuildContext {
pub fn new(location: ContextLocation) -> Self {
Self {
location,
_owner: None,
}
}
pub fn with_owner(location: ContextLocation, owner: impl Send + Sync + 'static) -> Self {
Self {
location,
_owner: Some(Box::new(owner)),
}
}
}