pub enum System {
Android,
IOS,
Linux,
MacOS,
Web,
Windows(WindowsABI),
}Expand description
System to compile the Godot game and the Rust GDExtension for.
Variants§
Android
Android system.
IOS
iOS system.
Linux
Linux system.
MacOS
MacOS system.
Web
Web browser.
Windows(WindowsABI)
Windows system.
Implementations§
Source§impl System
impl System
Sourcepub fn get_systems(windows_abi: WindowsABI) -> [Self; 6]
pub fn get_systems(windows_abi: WindowsABI) -> [Self; 6]
Sourcepub fn get_architectures(&self) -> Vec<Architecture>
pub fn get_architectures(&self) -> Vec<Architecture>
Gets all Architectures available for a System.
§Returns
A Vec with all available Architecture for the System.
Sourcepub fn get_lib_export_name(&self, lib_name: &str) -> String
pub fn get_lib_export_name(&self, lib_name: &str) -> String
Gets the name of the compiled library for the given system.
§Parameters
lib_name- Name of the library crate that is being compiled. It can be retrieved with the environmental variable: “CARGO_PKG_NAME", but it must be turned into snake_case.
§Returns
The name of the file that’s going to be compiled.
Trait Implementations§
impl Copy for System
impl Eq for System
impl StructuralPartialEq for System
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
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.