pub struct VeridianTarget {
pub triple: &'static str,
pub arch: &'static str,
pub features: &'static str,
}Expand description
Describes a supported VeridianOS build target at compile time.
Fields§
§triple: &'static strTarget triple (e.g. “x86_64-veridian”).
arch: &'static strArchitecture short name (e.g. “x86_64”).
features: &'static strArchitecture-specific compiler feature flags.
Implementations§
Source§impl VeridianTarget
impl VeridianTarget
Sourcepub const X86_64: VeridianTarget
pub const X86_64: VeridianTarget
x86_64 target with soft-float and no red zone for kernel safety.
Sourcepub const AARCH64: VeridianTarget
pub const AARCH64: VeridianTarget
AArch64 target using the Cortex-A57 baseline.
Sourcepub const RISCV64: VeridianTarget
pub const RISCV64: VeridianTarget
RISC-V 64-bit target with GC extensions.
Sourcepub fn from_triple(triple: &str) -> Option<VeridianTarget>
pub fn from_triple(triple: &str) -> Option<VeridianTarget>
Look up a target definition by its triple string.
Sourcepub fn current() -> VeridianTarget
pub fn current() -> VeridianTarget
Return the target definition for the current compile-time architecture.
Trait Implementations§
Source§impl Clone for VeridianTarget
impl Clone for VeridianTarget
Source§fn clone(&self) -> VeridianTarget
fn clone(&self) -> VeridianTarget
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VeridianTarget
impl Debug for VeridianTarget
Source§impl PartialEq for VeridianTarget
impl PartialEq for VeridianTarget
impl Copy for VeridianTarget
impl Eq for VeridianTarget
impl StructuralPartialEq for VeridianTarget
Auto Trait Implementations§
impl Freeze for VeridianTarget
impl RefUnwindSafe for VeridianTarget
impl Send for VeridianTarget
impl Sync for VeridianTarget
impl Unpin for VeridianTarget
impl UnwindSafe for VeridianTarget
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)