Skip to main content

llama_cpp_path_c_string/
path_c_string_error.rs

1use std::ffi::NulError;
2use std::path::PathBuf;
3
4#[derive(Clone, Debug, Eq, PartialEq, thiserror::Error)]
5pub enum PathCStringError {
6    #[error("the path contains a NUL byte")]
7    ContainsNulByte(#[source] NulError),
8    #[error("the path {0} is not valid UTF-8")]
9    NotUtf8(PathBuf),
10}