[][src]Trait nannou::vk::descriptor::pipeline_layout::PipelineLayoutSuperset

pub unsafe trait PipelineLayoutSuperset<Other>: PipelineLayoutDesc where
    Other: PipelineLayoutDesc + ?Sized
{ fn ensure_superset_of(
        &self,
        &Other
    ) -> Result<(), PipelineLayoutNotSupersetError>; }

Traits that allow determining whether a pipeline layout is a superset of another one.

This trait is automatically implemented on all types that implement PipelineLayoutAbstract. TODO: once specialization lands, we can add implementations that don't perform deep comparisons

Required methods

fn ensure_superset_of(
    &self,
    &Other
) -> Result<(), PipelineLayoutNotSupersetError>

Makes sure that self is a superset of Other. Returns an Err if this is not the case.

Loading content...

Implementors

impl<T, U> PipelineLayoutSuperset<U> for T where
    T: PipelineLayoutDesc + ?Sized,
    U: PipelineLayoutDesc + ?Sized
[src]

Loading content...