Struct vulkano::RequiresOneOf
source · [−]pub struct RequiresOneOf {
pub api_version: Option<Version>,
pub features: &'static [&'static str],
pub device_extensions: &'static [&'static str],
pub instance_extensions: &'static [&'static str],
}
Expand description
Used in errors to indicate a set of alternatives that needs to be available/enabled to allow a given operation.
Fields
api_version: Option<Version>
A minimum Vulkan API version that would allow the operation.
features: &'static [&'static str]
Enabled features that would allow the operation.
device_extensions: &'static [&'static str]
Available/enabled device extensions that would allow the operation.
instance_extensions: &'static [&'static str]
Available/enabled instance extensions that would allow the operation.
Implementations
sourceimpl RequiresOneOf
impl RequiresOneOf
Trait Implementations
sourceimpl Clone for RequiresOneOf
impl Clone for RequiresOneOf
sourcefn clone(&self) -> RequiresOneOf
fn clone(&self) -> RequiresOneOf
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RequiresOneOf
impl Debug for RequiresOneOf
sourceimpl Default for RequiresOneOf
impl Default for RequiresOneOf
sourcefn default() -> RequiresOneOf
fn default() -> RequiresOneOf
Returns the “default value” for a type. Read more
sourceimpl Display for RequiresOneOf
impl Display for RequiresOneOf
sourceimpl PartialEq<RequiresOneOf> for RequiresOneOf
impl PartialEq<RequiresOneOf> for RequiresOneOf
sourcefn eq(&self, other: &RequiresOneOf) -> bool
fn eq(&self, other: &RequiresOneOf) -> bool
impl Copy for RequiresOneOf
impl Eq for RequiresOneOf
impl StructuralEq for RequiresOneOf
impl StructuralPartialEq for RequiresOneOf
Auto Trait Implementations
impl RefUnwindSafe for RequiresOneOf
impl Send for RequiresOneOf
impl Sync for RequiresOneOf
impl Unpin for RequiresOneOf
impl UnwindSafe for RequiresOneOf
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more