#[repr(C)]pub union DeviceOrHostAddressConstKHR {
pub device_address: DeviceAddress,
pub host_address: *const c_void,
}Expand description
Native union VkDeviceOrHostAddressConstKHR.
Fields§
§device_address: DeviceAddressNative field deviceAddress.
host_address: *const c_voidNative field hostAddress.
Implementations§
Source§impl DeviceOrHostAddressConstKHR
impl DeviceOrHostAddressConstKHR
Sourcepub fn set_device_address(self, value: DeviceAddress) -> Self
pub fn set_device_address(self, value: DeviceAddress) -> Self
Set native field deviceAddress without native effects.
Sourcepub unsafe fn set_host_address(self, value: *const c_void) -> Self
pub unsafe fn set_host_address(self, value: *const c_void) -> Self
Set native pointer hostAddress explicitly. No borrow or extent is inferred.
§Safety
The caller must establish pointee validity, extent, alignment, aliasing and the full native retention lifetime before using this record in a native call. Callback, external-object and nested-pointer contracts remain caller obligations.
Trait Implementations§
Source§impl Clone for DeviceOrHostAddressConstKHR
impl Clone for DeviceOrHostAddressConstKHR
impl Copy for DeviceOrHostAddressConstKHR
Auto Trait Implementations§
impl !Send for DeviceOrHostAddressConstKHR
impl !Sync for DeviceOrHostAddressConstKHR
impl Forget for DeviceOrHostAddressConstKHR
impl Freeze for DeviceOrHostAddressConstKHR
impl Move for DeviceOrHostAddressConstKHR
impl RefUnwindSafe for DeviceOrHostAddressConstKHR
impl Unpin for DeviceOrHostAddressConstKHR
impl UnsafeUnpin for DeviceOrHostAddressConstKHR
impl UnwindSafe for DeviceOrHostAddressConstKHR
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