Trait vulkano::descriptor::pipeline_layout::PipelineLayoutSuperset [−][src]
pub unsafe trait PipelineLayoutSuperset<Other: ?Sized>: PipelineLayoutDesc where
Other: PipelineLayoutDesc, { fn ensure_superset_of(
&self,
other: &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: &Other
) -> Result<(), PipelineLayoutNotSupersetError>
[src]
&self,
other: &Other
) -> Result<(), PipelineLayoutNotSupersetError>
Makes sure that self
is a superset of Other
. Returns an Err
if this is not the case.
Implementors
impl<T: ?Sized, U: ?Sized> PipelineLayoutSuperset<U> for T where
T: PipelineLayoutDesc,
U: PipelineLayoutDesc,
[src]
impl<T: ?Sized, U: ?Sized> PipelineLayoutSuperset<U> for T where
T: PipelineLayoutDesc,
U: PipelineLayoutDesc,
[src]fn ensure_superset_of(
&self,
other: &U
) -> Result<(), PipelineLayoutNotSupersetError>
[src]
&self,
other: &U
) -> Result<(), PipelineLayoutNotSupersetError>