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.

Object Safety§

This trait is not object safe.

Implementors§