DerivedDescriptor

Trait DerivedDescriptor 

Source
pub trait DerivedDescriptor<F: Format>:
    'static
    + Send
    + Sync
    + Sized {
    type Format: Format<Kind = F::Kind>;

    // Required method
    fn update(
        &self,
        data: &mut Self::Format,
        parent: &F,
        usages: &[&<F::Kind as Kind>::UsageDescriptor],
    );
}
Expand description

Allows a format to act as a maintained “copy” of a parent by synchronizing its contents with those of the parent.

Required Associated Types§

Source

type Format: Format<Kind = F::Kind>

The format that should be created for this descriptor.

Required Methods§

Source

fn update( &self, data: &mut Self::Format, parent: &F, usages: &[&<F::Kind as Kind>::UsageDescriptor], )

Updates the given data based upon the portions of the parent that have changed.

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.

Implementors§