#[repr(C)]pub struct TopologyArchitectureInfo {
pub discriminant: TopologyArchitectureInfoDiscriminant,
pub variant: TopologyArchitectureInfoVariant,
}
Fields§
§discriminant: TopologyArchitectureInfoDiscriminant
§variant: TopologyArchitectureInfoVariant
Implementations§
Source§impl TopologyArchitectureInfo
impl TopologyArchitectureInfo
pub fn is_arm64(&self) -> bool
pub fn as_arm64(&mut self) -> Option<&mut TopologyArm64Info>
pub fn is_x64(&self) -> bool
pub fn as_x64(&mut self) -> Option<&mut TopologyX64Info>
pub fn is_riscv64(&self) -> bool
pub fn as_riscv64(&mut self) -> Option<&mut TopologyRiscv64Info>
Trait Implementations§
Source§impl Clone for TopologyArchitectureInfo
impl Clone for TopologyArchitectureInfo
Source§fn clone(&self) -> TopologyArchitectureInfo
fn clone(&self) -> TopologyArchitectureInfo
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 moreimpl Copy for TopologyArchitectureInfo
Auto Trait Implementations§
impl Freeze for TopologyArchitectureInfo
impl RefUnwindSafe for TopologyArchitectureInfo
impl Send for TopologyArchitectureInfo
impl Sync for TopologyArchitectureInfo
impl Unpin for TopologyArchitectureInfo
impl UnwindSafe for TopologyArchitectureInfo
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
)