Skip to main content

PropertySetCatalog

Trait PropertySetCatalog 

Source
pub trait PropertySetCatalog {
    // Required method
    fn defines(&self, version: SchemaVersion, name: &str) -> Option<bool>;

    // Provided method
    fn template(&self, version: SchemaVersion, name: &str) -> Option<CatalogSet> { ... }
}
Expand description

The set names a release’s PSD/QTO catalog defines.

Implemented by the facade over ifc-template-catalog; any other source of the catalog may implement it too.

Required Methods§

Source

fn defines(&self, version: SchemaVersion, name: &str) -> Option<bool>

Whether the catalog of version defines a property or quantity set named exactly name; None when no catalog of that release is available here.

Provided Methods§

Source

fn template(&self, version: SchemaVersion, name: &str) -> Option<CatalogSet>

The members the catalog of version declares for the set named exactly name; None when it gives no member templates for it.

The default gives none, so a catalog that only knows names still works: its sets’ members are reported once as not checked (#537).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§