llama-cpp-path-c-string 0.30.0

Converts a filesystem path into the C string llama.cpp takes a path as
Documentation
1
2
3
4
5
6
7
8
9
10
use std::ffi::NulError;
use std::path::PathBuf;

#[derive(Clone, Debug, Eq, PartialEq, thiserror::Error)]
pub enum PathCStringError {
    #[error("the path contains a NUL byte")]
    ContainsNulByte(#[source] NulError),
    #[error("the path {0} is not valid UTF-8")]
    NotUtf8(PathBuf),
}