Skip to main content

MappingMergedExt

Trait MappingMergedExt 

Source
pub trait MappingMergedExt {
    // Required method
    fn merged<'a>(
        &self,
        registry: &'a AnchorRegistry,
    ) -> Result<MergedMapping<'a>, ResolveError>;
}
Expand description

Extension trait that adds merged to Mapping.

Required Methods§

Source

fn merged<'a>( &self, registry: &'a AnchorRegistry, ) -> Result<MergedMapping<'a>, ResolveError>

Return a MergedMapping view over this mapping that resolves aliases and merge keys against registry.

The view is read-only and does not modify the underlying CST.

Fails as MergedMapping::new does.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§