Struct ash::vk::PhysicalDeviceToolProperties
source · #[repr(C)]pub struct PhysicalDeviceToolProperties<'a> {
pub s_type: StructureType,
pub p_next: *mut c_void,
pub name: [c_char; 256],
pub version: [c_char; 256],
pub purposes: ToolPurposeFlags,
pub description: [c_char; 256],
pub layer: [c_char; 256],
pub _marker: PhantomData<&'a ()>,
}
Expand description
Fields§
§s_type: StructureType
§p_next: *mut c_void
§name: [c_char; 256]
§version: [c_char; 256]
§purposes: ToolPurposeFlags
§description: [c_char; 256]
§layer: [c_char; 256]
§_marker: PhantomData<&'a ()>
Implementations§
source§impl<'a> PhysicalDeviceToolProperties<'a>
impl<'a> PhysicalDeviceToolProperties<'a>
pub fn name(self, name: &CStr) -> Result<Self, CStrTooLargeForStaticArray>
pub fn name_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
pub fn version(self, version: &CStr) -> Result<Self, CStrTooLargeForStaticArray>
pub fn version_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
pub fn purposes(self, purposes: ToolPurposeFlags) -> Self
pub fn description( self, description: &CStr, ) -> Result<Self, CStrTooLargeForStaticArray>
pub fn description_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
pub fn layer(self, layer: &CStr) -> Result<Self, CStrTooLargeForStaticArray>
pub fn layer_as_c_str(&self) -> Result<&CStr, FromBytesUntilNulError>
Trait Implementations§
source§impl<'a> Clone for PhysicalDeviceToolProperties<'a>
impl<'a> Clone for PhysicalDeviceToolProperties<'a>
source§fn clone(&self) -> PhysicalDeviceToolProperties<'a>
fn clone(&self) -> PhysicalDeviceToolProperties<'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 PhysicalDeviceToolProperties<'_>
impl Debug for PhysicalDeviceToolProperties<'_>
source§impl Default for PhysicalDeviceToolProperties<'_>
impl Default for PhysicalDeviceToolProperties<'_>
source§impl<'a> TaggedStructure for PhysicalDeviceToolProperties<'a>
impl<'a> TaggedStructure for PhysicalDeviceToolProperties<'a>
const STRUCTURE_TYPE: StructureType = StructureType::PHYSICAL_DEVICE_TOOL_PROPERTIES
impl<'a> Copy for PhysicalDeviceToolProperties<'a>
impl Send for PhysicalDeviceToolProperties<'_>
impl Sync for PhysicalDeviceToolProperties<'_>
Auto Trait Implementations§
impl<'a> Freeze for PhysicalDeviceToolProperties<'a>
impl<'a> RefUnwindSafe for PhysicalDeviceToolProperties<'a>
impl<'a> Unpin for PhysicalDeviceToolProperties<'a>
impl<'a> UnwindSafe for PhysicalDeviceToolProperties<'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
)