pub struct HostAddressRangeEXT<'a> {
pub address: *mut c_void,
pub size: usize,
/* private fields */
}Expand description
Native structure VkHostAddressRangeEXT.
Fields§
§address: *mut c_voidNative field address.
size: usizeNative field size.
Implementations§
Source§impl<'a> HostAddressRangeEXT<'a>
impl<'a> HostAddressRangeEXT<'a>
Sourcepub fn set_address(self, value: &'a mut [u8]) -> Result<Self, ConstructionError>
pub fn set_address(self, value: &'a mut [u8]) -> Result<Self, ConstructionError>
Borrow address and set checked native byte size size.
The borrow covers this storage only; nested raw pointers, format, alignment
and asynchronous retention remain native-call obligations.
Output storage must be initialized; returned sizes do not enlarge its capacity.
§Errors
Returns a construction error if the length exceeds the native count width.
Sourcepub fn set_size(self, value: usize) -> Self
pub fn set_size(self, value: usize) -> Self
Set native count size directly without checking associated pointer extents.
Use the borrowed array helpers to derive matching storage and counts together.
Direct count edits support null-query/dynamic-state paths and remain a
native-call validity obligation, including after earlier borrowed setters.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for HostAddressRangeEXT<'a>
impl<'a> !Sync for HostAddressRangeEXT<'a>
impl<'a> !UnwindSafe for HostAddressRangeEXT<'a>
impl<'a> Forget for HostAddressRangeEXT<'a>
impl<'a> Freeze for HostAddressRangeEXT<'a>
impl<'a> Move for HostAddressRangeEXT<'a>
impl<'a> RefUnwindSafe for HostAddressRangeEXT<'a>
impl<'a> Unpin for HostAddressRangeEXT<'a>
impl<'a> UnsafeUnpin for HostAddressRangeEXT<'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