pub struct Platform(/* private fields */);Available on crate feature
compiler only.Implementations§
source§impl Platform
impl Platform
pub fn tune(&self) -> TuneFamily
pub fn set_tune(&mut self, tune: TuneFamily)
pub fn cpu_features(&self) -> CpuFeatures
pub fn set_cpu_features(&mut self, cpu_features: CpuFeatures)
pub fn get() -> &'static Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl UnwindSafe for Platform
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