pub struct Build { /* private fields */ }
Expand description
A builder for a Cabal library.
Implementations§
Source§impl Build
impl Build
Sourcepub fn use_cabal(&mut self, path: impl AsRef<Utf8Path>) -> &mut Self
pub fn use_cabal(&mut self, path: impl AsRef<Utf8Path>) -> &mut Self
Set the cabal
binary.
By default, PATH
is searched for the cabal
binary.
Sourcepub fn use_ghc_pkg(&mut self, path: impl AsRef<Utf8Path>) -> &mut Self
pub fn use_ghc_pkg(&mut self, path: impl AsRef<Utf8Path>) -> &mut Self
Set the ghc-pkg
binary.
By default, PATH
is searched for the ghc-pkg
binary.
Sourcepub fn use_rts(&mut self, rts_version: RTSVersion) -> &mut Self
pub fn use_rts(&mut self, rts_version: RTSVersion) -> &mut Self
Set the version of the GHC RTS.
By default, RTSVersion::NonThreaded
is used.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more