pub struct BuildContext {
pub out_dir: PathBuf,
pub target_dir: PathBuf,
pub llama_src: PathBuf,
pub target_os: TargetOs,
pub target_triple: String,
pub build_shared_libs: bool,
pub profile: String,
pub static_crt: bool,
pub android_ndk: Option<AndroidNdk>,
}Expand description
Shared state passed between build phases.
Fields§
§out_dir: PathBuf§target_dir: PathBuf§llama_src: PathBuf§target_os: TargetOs§target_triple: String§profile: String§static_crt: bool§android_ndk: Option<AndroidNdk>Trait Implementations§
Auto Trait Implementations§
impl Freeze for BuildContext
impl RefUnwindSafe for BuildContext
impl Send for BuildContext
impl Sync for BuildContext
impl Unpin for BuildContext
impl UnsafeUnpin for BuildContext
impl UnwindSafe for BuildContext
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