pub struct WrapperBuildInputs { /* private fields */ }Expand description
The compilation database and the response file the C++ linters read the wrapper sources from.
Implementations§
Source§impl WrapperBuildInputs
impl WrapperBuildInputs
Sourcepub fn from_arguments(
arguments: impl Iterator<Item = String>,
) -> Result<Self, WrapperSourcesError>
pub fn from_arguments( arguments: impl Iterator<Item = String>, ) -> Result<Self, WrapperSourcesError>
Reads <sys-dir> <llama-cpp-dir> <compile-commands-path> <response-file-path> from the
command line arguments that follow the program name.
§Errors
Returns WrapperSourcesError::MissingArgument naming the first argument that is absent.
Sourcepub fn write(&self) -> Result<(), WrapperSourcesError>
pub fn write(&self) -> Result<(), WrapperSourcesError>
§Errors
Returns WrapperSourcesError when the compilation database or the response file cannot
be written.
Auto Trait Implementations§
impl Forget for WrapperBuildInputs
impl Freeze for WrapperBuildInputs
impl Move for WrapperBuildInputs
impl RefUnwindSafe for WrapperBuildInputs
impl Send for WrapperBuildInputs
impl Sync for WrapperBuildInputs
impl Unpin for WrapperBuildInputs
impl UnsafeUnpin for WrapperBuildInputs
impl UnwindSafe for WrapperBuildInputs
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