#[repr(C)]pub struct VulkanInfo {
pub memory_idx: u32,
pub device_id: DeviceId,
}Expand description
Memory index and physical device id of the associated VkDeviceMemory.
Fields§
§memory_idx: u32§device_id: DeviceIdTrait Implementations§
Source§impl Clone for VulkanInfo
impl Clone for VulkanInfo
Source§fn clone(&self) -> VulkanInfo
fn clone(&self) -> VulkanInfo
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 VulkanInfo
impl Debug for VulkanInfo
Source§impl Default for VulkanInfo
impl Default for VulkanInfo
Source§fn default() -> VulkanInfo
fn default() -> VulkanInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VulkanInfo
impl<'de> Deserialize<'de> for VulkanInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromBytes for VulkanInfo
impl FromBytes for VulkanInfo
Source§impl FromZeros for VulkanInfo
impl FromZeros for VulkanInfo
Source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read moreSource§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moreSource§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
fn extend_vec_zeroed(
v: &mut Vec<Self>,
additional: usize,
) -> Result<(), AllocError>where
Self: Sized,
Extends a
Vec<Self> by pushing additional new items onto the end of
the vector. The new items are initialized with zeros. Read moreSource§impl Hash for VulkanInfo
impl Hash for VulkanInfo
Source§impl IntoBytes for VulkanInfo
impl IntoBytes for VulkanInfo
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl Ord for VulkanInfo
impl Ord for VulkanInfo
Source§fn cmp(&self, other: &VulkanInfo) -> Ordering
fn cmp(&self, other: &VulkanInfo) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VulkanInfo
impl PartialEq for VulkanInfo
Source§fn eq(&self, other: &VulkanInfo) -> bool
fn eq(&self, other: &VulkanInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VulkanInfo
impl PartialOrd for VulkanInfo
Source§impl Serialize for VulkanInfo
impl Serialize for VulkanInfo
Source§impl TryFromBytes for VulkanInfo
impl TryFromBytes for VulkanInfo
Source§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Source§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for VulkanInfo
impl Eq for VulkanInfo
impl Immutable for VulkanInfo
impl StructuralPartialEq for VulkanInfo
Auto Trait Implementations§
impl Freeze for VulkanInfo
impl RefUnwindSafe for VulkanInfo
impl Send for VulkanInfo
impl Sync for VulkanInfo
impl Unpin for VulkanInfo
impl UnsafeUnpin for VulkanInfo
impl UnwindSafe for VulkanInfo
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