pub fn new<P: AsRef<Path>>(file: P) -> Result<Self, ()> {
        if file.as_ref().exists() {
            Ok(Self {
                file: CString::new(file.as_ref().to_string_lossy().into_owned()).unwrap(),
            })
        } else {
            Err(())
        }
    }
/// Creates a new OpenVDB query for a file.
Creates a new OpenVDB query for a file.
Creates a new OpenVDB query for a file .
pub fn new<P: AsRef<Path>>(file: P) -> Result<Self, ()> {
        if file.as_ref().exists() {
            Ok(Self {
                file: CString::new(file.as_ref().to_string_lossy().into_owned()).unwrap(),
            })
        } else {
            Err(())
        }
    }
pub fn new < P : AsRef < Path > > ( file : P ) -> Result < Self , ( ) > { if file . as_ref ( ) . exists ( ) { Ok ( Self { file : CString :: new ( file . as_ref ( ) . to_string_lossy ( ) . into_owned ( ) ) . unwrap ( ) , } ) } else { Err ( ( ) ) } }
Creates a new OpenVDB query for a file.
Creates a new OpenVDB query for a file .
file
P