pub struct CompileOptions(/* private fields */);
Implementations§
Methods from Deref<Target = CompileOptionsRef>§
pub unsafe fn preprocessor_macros(&self) -> *mut Object
pub unsafe fn set_preprocessor_macros(&self, defines: *mut Object)
pub fn is_fast_math_enabled(&self) -> bool
pub fn set_fast_math_enabled(&self, enabled: bool)
Sourcepub fn language_version(&self) -> MTLLanguageVersion
pub fn language_version(&self) -> MTLLanguageVersion
Only available on (macos(10.11), ios(9.0))
Sourcepub fn set_language_version(&self, version: MTLLanguageVersion)
pub fn set_language_version(&self, version: MTLLanguageVersion)
Only available on (macos(10.11), ios(9.0))
Sourcepub fn library_type(&self) -> MTLLibraryType
pub fn library_type(&self) -> MTLLibraryType
Only available on (macos(11.0), ios(14.0))
Sourcepub fn set_library_type(&self, lib_type: MTLLibraryType)
pub fn set_library_type(&self, lib_type: MTLLibraryType)
Only available on (macos(11.0), ios(14.0))
Sourcepub fn install_name(&self) -> &str
pub fn install_name(&self) -> &str
Only available on (macos(11.0), ios(14.0))
Sourcepub fn set_install_name(&self, name: &str)
pub fn set_install_name(&self, name: &str)
Only available on (macos(11.0), ios(14.0))
Sourcepub fn libraries(&self) -> Vec<DynamicLibrary>
pub fn libraries(&self) -> Vec<DynamicLibrary>
Only available on (macos(11.0), ios(14.0))
Marshal to Rust Vec
Sourcepub fn libraries_as_nsarray(&self) -> &ArrayRef<DynamicLibrary>
pub fn libraries_as_nsarray(&self) -> &ArrayRef<DynamicLibrary>
Only available on (macos(11.0), ios(14.0))
As raw NSArray
Sourcepub fn set_libraries(&self, libraries: &[&DynamicLibraryRef])
pub fn set_libraries(&self, libraries: &[&DynamicLibraryRef])
Only available on (macos(11.0), ios(14.0))
Marshal from Rust slice
Sourcepub fn set_libraries_nsarray(&self, libraries: &ArrayRef<DynamicLibrary>)
pub fn set_libraries_nsarray(&self, libraries: &ArrayRef<DynamicLibrary>)
Only available on (macos(11.0), ios(14.0))
From raw NSArray
Sourcepub fn preserve_invariance(&self) -> bool
pub fn preserve_invariance(&self) -> bool
Only available on (macos(11.0), macCatalyst(14.0), ios(13.0))
Sourcepub fn set_preserve_invariance(&self, preserve: bool)
pub fn set_preserve_invariance(&self, preserve: bool)
Only available on (macos(11.0), macCatalyst(14.0), ios(13.0))
Trait Implementations§
Source§impl AsMut<CompileOptionsRef> for CompileOptions
impl AsMut<CompileOptionsRef> for CompileOptions
Source§fn as_mut(&mut self) -> &mut CompileOptionsRef
fn as_mut(&mut self) -> &mut CompileOptionsRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<CompileOptionsRef> for CompileOptions
impl AsRef<CompileOptionsRef> for CompileOptions
Source§fn as_ref(&self) -> &CompileOptionsRef
fn as_ref(&self) -> &CompileOptionsRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<CompileOptionsRef> for CompileOptions
impl Borrow<CompileOptionsRef> for CompileOptions
Source§fn borrow(&self) -> &CompileOptionsRef
fn borrow(&self) -> &CompileOptionsRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<CompileOptionsRef> for CompileOptions
impl BorrowMut<CompileOptionsRef> for CompileOptions
Source§fn borrow_mut(&mut self) -> &mut CompileOptionsRef
fn borrow_mut(&mut self) -> &mut CompileOptionsRef
Mutably borrows from an owned value. Read more
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§fn clone(&self) -> CompileOptions
fn clone(&self) -> CompileOptions
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 CompileOptions
impl Debug for CompileOptions
Source§impl Deref for CompileOptions
impl Deref for CompileOptions
Source§type Target = CompileOptionsRef
type Target = CompileOptionsRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &CompileOptionsRef
fn deref(&self) -> &CompileOptionsRef
Dereferences the value.
Source§impl DerefMut for CompileOptions
impl DerefMut for CompileOptions
Source§fn deref_mut(&mut self) -> &mut CompileOptionsRef
fn deref_mut(&mut self) -> &mut CompileOptionsRef
Mutably dereferences the value.
Source§impl Drop for CompileOptions
impl Drop for CompileOptions
Source§impl ForeignType for CompileOptions
impl ForeignType for CompileOptions
Source§type CType = MTLCompileOptions
type CType = MTLCompileOptions
The raw C type.
Source§type Ref = CompileOptionsRef
type Ref = CompileOptionsRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut MTLCompileOptions) -> CompileOptions
unsafe fn from_ptr(ptr: *mut MTLCompileOptions) -> CompileOptions
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut MTLCompileOptions
fn as_ptr(&self) -> *mut MTLCompileOptions
Returns a raw pointer to the wrapped value.
impl Send for CompileOptions
impl Sync for CompileOptions
Auto Trait Implementations§
impl Freeze for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Unpin for CompileOptions
impl UnwindSafe for CompileOptions
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