pub enum BuildMode {
CArchive,
CShared,
}Expand description
BuildMode to be used during compilation.
Refer to the Go docs for more information.
Variants§
CArchive
Build the listed main package, plus all packages it imports, into a C archive file. The only callable symbols will be those functions exported using a cgo //export comment. Requires exactly one main package to be listed.
Build the listed main package, plus all packages it imports, into a C shared library. The only callable symbols will be those functions exported using a cgo //export comment. Requires exactly one main package to be listed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildMode
impl RefUnwindSafe for BuildMode
impl Send for BuildMode
impl Sync for BuildMode
impl Unpin for BuildMode
impl UnwindSafe for BuildMode
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