pub enum Architecture {
Generic,
X86_32,
X86_64,
Armv7,
Arm64,
Rv64,
Wasm32,
}Expand description
Architecture to compile the Godot game and the Rust GDExtension for.
Variants§
Generic
MacOS universal library using Architecture::Arm64 and Architecture::X86_64, or a generic architecture for the rest.
X86_32
The i868 architecture.
X86_64
The x86_64 architecture.
Armv7
The Arm32v7 architecture.
Arm64
The AArch64 architecture.
Rv64
The Risc-V 64 architecture.
Wasm32
The WebAssembly architecture.
Implementations§
Source§impl Architecture
impl Architecture
Sourcepub fn get_rust_name(&self) -> &'static str
pub fn get_rust_name(&self) -> &'static str
Gets the name of the Architecture used in Rust target triples.
§Returns
The name of the Architecture for the Rust target triple.
Sourcepub fn get_godot_name(&self) -> &'static str
pub fn get_godot_name(&self) -> &'static str
Gets the name of the Architecture used in Godot targets.
§Returns
The name of the Architecture for the Godot target.
Trait Implementations§
Source§impl Clone for Architecture
impl Clone for Architecture
Source§fn clone(&self) -> Architecture
fn clone(&self) -> Architecture
Returns a duplicate 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 Architecture
impl Debug for Architecture
Source§impl Hash for Architecture
impl Hash for Architecture
Source§impl PartialEq for Architecture
impl PartialEq for Architecture
impl Copy for Architecture
impl Eq for Architecture
impl StructuralPartialEq for Architecture
Auto Trait Implementations§
impl Freeze for Architecture
impl RefUnwindSafe for Architecture
impl Send for Architecture
impl Sync for Architecture
impl Unpin for Architecture
impl UnwindSafe for Architecture
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.