#[repr(C)]pub struct TopologyRiscv64Info {
pub hart_id: u64,
pub isa_strtab_index: u32,
pub reserved: u32,
}
Fields§
§hart_id: u64
ID that represents this logical CPU (i.e., hart) in SBI.
isa_strtab_index: u32
Index into the ZBI_TYPE_RISCV64_ISA_STRTAB string table payload giving the start of the associated ISA string.
reserved: u32
Trait Implementations§
Source§impl Clone for TopologyRiscv64Info
impl Clone for TopologyRiscv64Info
Source§fn clone(&self) -> TopologyRiscv64Info
fn clone(&self) -> TopologyRiscv64Info
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 TopologyRiscv64Info
impl Debug for TopologyRiscv64Info
Source§impl FromBytes for TopologyRiscv64Info
impl FromBytes for TopologyRiscv64Info
Source§impl FromZeros for TopologyRiscv64Info
impl FromZeros for TopologyRiscv64Info
Source§impl IntoBytes for TopologyRiscv64Info
impl IntoBytes for TopologyRiscv64Info
§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§impl PartialEq for TopologyRiscv64Info
impl PartialEq for TopologyRiscv64Info
Source§impl TryFromBytes for TopologyRiscv64Info
impl TryFromBytes for TopologyRiscv64Info
§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,
§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,
§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 TopologyRiscv64Info
impl Eq for TopologyRiscv64Info
impl StructuralPartialEq for TopologyRiscv64Info
Auto Trait Implementations§
impl Freeze for TopologyRiscv64Info
impl RefUnwindSafe for TopologyRiscv64Info
impl Send for TopologyRiscv64Info
impl Sync for TopologyRiscv64Info
impl Unpin for TopologyRiscv64Info
impl UnwindSafe for TopologyRiscv64Info
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
)