pub struct ParseApiVersionError {
pub major: u32,
pub minor: u32,
pub patch: u32,
pub variant: u32,
}Expand description
Data returned when attempting to parse a Vulkan API version number.
Fields§
§major: u32The major version indicates a significant change in the API, which will encompass a wholly new version of the specification.
minor: u32The minor version indicates the incorporation of new functionality into the core specification.
patch: u32The patch version indicates bug fixes, clarifications, and language improvements have been incorporated into the specification.
variant: u32The variant indicates the variant of the Vulkan API supported by the implementation. This is always 0 for the Vulkan API.
Trait Implementations§
Source§impl Clone for ParseApiVersionError
impl Clone for ParseApiVersionError
Source§fn clone(&self) -> ParseApiVersionError
fn clone(&self) -> ParseApiVersionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseApiVersionError
impl Debug for ParseApiVersionError
Source§impl Display for ParseApiVersionError
impl Display for ParseApiVersionError
Source§impl Error for ParseApiVersionError
impl Error for ParseApiVersionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl Copy for ParseApiVersionError
Auto Trait Implementations§
impl Freeze for ParseApiVersionError
impl RefUnwindSafe for ParseApiVersionError
impl Send for ParseApiVersionError
impl Sync for ParseApiVersionError
impl Unpin for ParseApiVersionError
impl UnsafeUnpin for ParseApiVersionError
impl UnwindSafe for ParseApiVersionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more