pub struct KernelBuild { /* private fields */ }Implementations§
Source§impl KernelBuild
impl KernelBuild
pub fn new(kernel_type: KernelType) -> Self
Sourcepub fn include<P: AsRef<Path>>(&mut self, dir: P) -> &mut KernelBuild
pub fn include<P: AsRef<Path>>(&mut self, dir: P) -> &mut KernelBuild
Add a directory to the -I or include path for headers
Sourcepub fn flag(&mut self, flag: &str) -> &mut KernelBuild
pub fn flag(&mut self, flag: &str) -> &mut KernelBuild
Add an arbitrary flag to the invocation of the compiler
Sourcepub fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
pub fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
Add a file which will be compiled
Sourcepub fn files<P>(&mut self, p: P) -> &mut KernelBuild
pub fn files<P>(&mut self, p: P) -> &mut KernelBuild
Add files which will be compiled
Sourcepub fn file_opt<P: AsRef<Path>>(
&mut self,
_p: P,
_opt: usize,
) -> &mut KernelBuild
pub fn file_opt<P: AsRef<Path>>( &mut self, _p: P, _opt: usize, ) -> &mut KernelBuild
Add a file which will be compiled
Sourcepub fn files_opt<P>(&mut self, _p: P, _opt: usize) -> &mut KernelBuild
pub fn files_opt<P>(&mut self, _p: P, _opt: usize) -> &mut KernelBuild
Add files which will be compiled
Sourcepub fn dep<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
pub fn dep<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
Add a dependency
Sourcepub fn deps<P>(&mut self, p: P) -> &mut KernelBuild
pub fn deps<P>(&mut self, p: P) -> &mut KernelBuild
Add dependencies
pub fn compile(&mut self, output: &str)
Auto Trait Implementations§
impl Freeze for KernelBuild
impl RefUnwindSafe for KernelBuild
impl Send for KernelBuild
impl Sync for KernelBuild
impl Unpin for KernelBuild
impl UnsafeUnpin for KernelBuild
impl UnwindSafe for KernelBuild
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