Struct ash::vk::PerformanceCounterDescriptionKHR
source · #[repr(C)]pub struct PerformanceCounterDescriptionKHR<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub flags: PerformanceCounterDescriptionFlagsKHR,
pub name: [c_char; 256],
pub category: [c_char; 256],
pub description: [c_char; 256],
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *mut c_void
§flags: PerformanceCounterDescriptionFlagsKHR
§name: [c_char; 256]
§category: [c_char; 256]
§description: [c_char; 256]
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PerformanceCounterDescriptionKHR<'a>
impl<'a> PerformanceCounterDescriptionKHR<'a>
pub fn flags(self, flags: PerformanceCounterDescriptionFlagsKHR) -> Self
pub fn name(self, name: &CStr) -> Result<Self, CStrTooLargeForStaticArray>
pub fn name_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
pub fn category( self, category: &CStr, ) -> Result<Self, CStrTooLargeForStaticArray>
pub fn category_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
pub fn description( self, description: &CStr, ) -> Result<Self, CStrTooLargeForStaticArray>
pub fn description_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
Trait Implementations§
source§impl<'a> Clone for PerformanceCounterDescriptionKHR<'a>
impl<'a> Clone for PerformanceCounterDescriptionKHR<'a>
source§fn clone(&self) -> PerformanceCounterDescriptionKHR<'a>
fn clone(&self) -> PerformanceCounterDescriptionKHR<'a>
Returns a copy of the value. Read more
1.0.0 · 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 PerformanceCounterDescriptionKHR<'_>
impl Debug for PerformanceCounterDescriptionKHR<'_>
source§impl Default for PerformanceCounterDescriptionKHR<'_>
impl Default for PerformanceCounterDescriptionKHR<'_>
source§impl<'a> TaggedStructure for PerformanceCounterDescriptionKHR<'a>
impl<'a> TaggedStructure for PerformanceCounterDescriptionKHR<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PERFORMANCE_COUNTER_DESCRIPTION_KHR
impl<'a> Copy for PerformanceCounterDescriptionKHR<'a>
impl Send for PerformanceCounterDescriptionKHR<'_>
impl Sync for PerformanceCounterDescriptionKHR<'_>
Auto Trait Implementations§
impl<'a> Freeze for PerformanceCounterDescriptionKHR<'a>
impl<'a> RefUnwindSafe for PerformanceCounterDescriptionKHR<'a>
impl<'a> Unpin for PerformanceCounterDescriptionKHR<'a>
impl<'a> UnwindSafe for PerformanceCounterDescriptionKHR<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)