#[repr(C)]pub struct kvm_xcrs {
pub nr_xcrs: u32,
pub flags: u32,
pub xcrs: [kvm_xcr; 16],
pub padding: [u64; 16],
}
Fields§
§nr_xcrs: u32
§flags: u32
§xcrs: [kvm_xcr; 16]
§padding: [u64; 16]
Trait Implementations§
source§impl AsBytes for kvm_xcrswhere
u32: AsBytes,
[kvm_xcr; 16]: AsBytes,
[u64; 16]: AsBytes,
HasPadding<kvm_xcrs, { _ }>: ShouldBe<{ _ }>,
impl AsBytes for kvm_xcrswhere u32: AsBytes, [kvm_xcr; 16]: AsBytes, [u64; 16]: AsBytes, HasPadding<kvm_xcrs, { _ }>: ShouldBe<{ _ }>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
source§impl FromBytes for kvm_xcrswhere
u32: FromBytes,
[kvm_xcr; 16]: FromBytes,
[u64; 16]: FromBytes,
impl FromBytes for kvm_xcrswhere u32: FromBytes, [kvm_xcr; 16]: FromBytes, [u64; 16]: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize ) -> Option<(&mut [Self], &mut [u8])>where Self: Sized + AsBytes,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize ) -> Option<(&mut [u8], &mut [Self])>where Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where Self: Sized,
source§impl FromZeroes for kvm_xcrswhere
u32: FromZeroes,
[kvm_xcr; 16]: FromZeroes,
[u64; 16]: FromZeroes,
impl FromZeroes for kvm_xcrswhere u32: FromZeroes, [kvm_xcr; 16]: FromZeroes, [u64; 16]: FromZeroes,
impl Copy for kvm_xcrs
Auto Trait Implementations§
impl RefUnwindSafe for kvm_xcrs
impl Send for kvm_xcrs
impl Sync for kvm_xcrs
impl Unpin for kvm_xcrs
impl UnwindSafe for kvm_xcrs
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