#[non_exhaustive]pub enum TargetPlatform {
Windows,
MacOS,
Linux,
Wasm,
}Expand description
Target platform for which the GDExtension interface is generated.
Since the gdextension-api crate is typically used as a build dependency, it won’t have compile-time access to the build target
(only runtime via CARGO_CFG_TARGET_* env vars). For more flexibility and testing, this choice is delegated to the caller.
See load_gdextension_header_rs_for_platform() for usage.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto Trait Implementations§
impl Freeze for TargetPlatform
impl RefUnwindSafe for TargetPlatform
impl Send for TargetPlatform
impl Sync for TargetPlatform
impl Unpin for TargetPlatform
impl UnwindSafe for TargetPlatform
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