pub struct Target {
pub architecture: TargetArchitecture,
pub operating_system: TargetOperatingSystem,
}Fields§
§architecture: TargetArchitecture§operating_system: TargetOperatingSystemImplementations§
Source§impl Target
impl Target
pub fn new( architecture: TargetArchitecture, operating_system: TargetOperatingSystem, ) -> Self
pub fn to_str(&self) -> String
Sourcepub fn detect_host() -> Self
pub fn detect_host() -> Self
Detect the host system’s target.
§Examples
use lamina_platform::Target;
let host = Target::detect_host();
println!("Host target: {}", host);Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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