mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-29 02:04:37 +00:00
Add a union
method to the extensions types. (#1125)
Add a `union` method to the extensions types.
This commit is contained in:
parent
a9704caea9
commit
51cc13a0f4
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
- Add support for `#include "..."` and `#include <...>` directives within source
|
- Add support for `#include "..."` and `#include <...>` directives within source
|
||||||
files.
|
files.
|
||||||
|
- Add a `union` method for the extensions types.
|
||||||
|
|
||||||
# Version 0.11.1 (2018-11-16)
|
# Version 0.11.1 (2018-11-16)
|
||||||
|
|
||||||
|
@ -42,6 +42,17 @@ macro_rules! extensions {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the union of this list and another list.
|
||||||
|
#[inline]
|
||||||
|
pub fn union(&self, other: &$sname) -> $sname {
|
||||||
|
$sname {
|
||||||
|
$(
|
||||||
|
$ext: self.$ext || other.$ext,
|
||||||
|
)*
|
||||||
|
_unbuildable: Unbuildable(())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns the intersection of this list and another list.
|
/// Returns the intersection of this list and another list.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn intersection(&self, other: &$sname) -> $sname {
|
pub fn intersection(&self, other: &$sname) -> $sname {
|
||||||
|
Loading…
Reference in New Issue
Block a user