Struct hvdef::HvRegisterName
source · #[repr(C)]pub struct HvRegisterName(pub u32);
Expand description
A hypervisor register for any architecture.
This exists only to pass registers through layers where the architecture type has been lost. In general, you should use the arch-specific registers.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl AsBytes for HvRegisterNamewhere
u32: AsBytes,
HasPadding<HvRegisterName, { _ }>: ShouldBe<false>,
impl AsBytes for HvRegisterNamewhere
u32: AsBytes,
HasPadding<HvRegisterName, { _ }>: ShouldBe<false>,
§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 Clone for HvRegisterName
impl Clone for HvRegisterName
source§fn clone(&self) -> HvRegisterName
fn clone(&self) -> HvRegisterName
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 HvRegisterName
impl Debug for HvRegisterName
source§impl From<HvAllArchRegisterName> for HvRegisterName
impl From<HvAllArchRegisterName> for HvRegisterName
source§fn from(name: HvAllArchRegisterName) -> Self
fn from(name: HvAllArchRegisterName) -> Self
Converts to this type from the input type.
source§impl From<HvArm64RegisterName> for HvRegisterName
impl From<HvArm64RegisterName> for HvRegisterName
source§fn from(name: HvArm64RegisterName) -> Self
fn from(name: HvArm64RegisterName) -> Self
Converts to this type from the input type.
source§impl From<HvRegisterName> for HvAllArchRegisterName
impl From<HvRegisterName> for HvAllArchRegisterName
source§fn from(name: HvRegisterName) -> Self
fn from(name: HvRegisterName) -> Self
Converts to this type from the input type.
source§impl From<HvRegisterName> for HvArm64RegisterName
impl From<HvRegisterName> for HvArm64RegisterName
source§fn from(name: HvRegisterName) -> Self
fn from(name: HvRegisterName) -> Self
Converts to this type from the input type.
source§impl From<HvRegisterName> for HvX64RegisterName
impl From<HvRegisterName> for HvX64RegisterName
source§fn from(name: HvRegisterName) -> Self
fn from(name: HvRegisterName) -> Self
Converts to this type from the input type.
source§impl From<HvX64RegisterName> for HvRegisterName
impl From<HvX64RegisterName> for HvRegisterName
source§fn from(name: HvX64RegisterName) -> Self
fn from(name: HvX64RegisterName) -> Self
Converts to this type from the input type.
source§impl FromBytes for HvRegisterNamewhere
u32: FromBytes,
impl FromBytes for HvRegisterNamewhere
u32: FromBytes,
§fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
§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(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
§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 HvRegisterNamewhere
u32: FromZeroes,
impl FromZeroes for HvRegisterNamewhere
u32: FromZeroes,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self
from zeroed bytes. Read more§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self>
from zeroed bytes. Read moresource§impl PartialEq for HvRegisterName
impl PartialEq for HvRegisterName
impl Copy for HvRegisterName
impl Eq for HvRegisterName
impl StructuralPartialEq for HvRegisterName
Auto Trait Implementations§
impl Freeze for HvRegisterName
impl RefUnwindSafe for HvRegisterName
impl Send for HvRegisterName
impl Sync for HvRegisterName
impl Unpin for HvRegisterName
impl UnwindSafe for HvRegisterName
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
)