pub struct Swift { /* private fields */ }Expand description
Swift code to compile into the package (see swift).
Implementations§
Source§impl Swift
impl Swift
Sourcepub fn module(self, name: &str) -> Self
pub fn module(self, name: &str) -> Self
The Swift module’s name, which Swift code in other modules would
import. By default the package’s name in UpperCamelCase
(my-app → MyApp).
Sourcepub fn min_macos(self, version: &str) -> Self
pub fn min_macos(self, version: &str) -> Self
The oldest macOS the Swift code is compiled for, such as "15.0".
By default MACOSX_DEPLOYMENT_TARGET, else 15.0 (Ferrokit’s
minimum).
Sourcepub fn swift_version(self, version: &str) -> Self
pub fn swift_version(self, version: &str) -> Self
The Swift language mode ("5" or "6"); by default swiftc’s
own.
Sourcepub fn flag(self, flag: &str) -> Self
pub fn flag(self, flag: &str) -> Self
Passes flag to swiftc as it is ("-warnings-as-errors", "-D"
and "FEATURE" as two flags…).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Swift
impl Freeze for Swift
impl Move for Swift
impl RefUnwindSafe for Swift
impl Send for Swift
impl Sync for Swift
impl Unpin for Swift
impl UnsafeUnpin for Swift
impl UnwindSafe for Swift
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