pub trait PathContainer<'sg, 'rslv, LABEL: 'sg, DATA: 'sg>: 'rslv {
type EnvContainer;
// Required method
fn map_into_env<F: 'rslv + FnMut(Path<LABEL>) -> Self::EnvContainer>(
self,
f: F,
) -> Self::EnvContainer;
}
Expand description
Interface for path containers that support the operations required for query resolution.
Required Associated Types§
Sourcetype EnvContainer
type EnvContainer
Type returned by resolving a path to its sub-environment.
Required Methods§
Sourcefn map_into_env<F: 'rslv + FnMut(Path<LABEL>) -> Self::EnvContainer>(
self,
f: F,
) -> Self::EnvContainer
fn map_into_env<F: 'rslv + FnMut(Path<LABEL>) -> Self::EnvContainer>( self, f: F, ) -> Self::EnvContainer
Computes sub-environments for each path in the container,
and composes them using the [crate::containers::EnvContainer::lift_merge
] method.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.