gausplat_loader/function/
open.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Functions for opening process.

pub use crate::error::Error;

use std::path::Path;

/// Opening function.
pub trait Opener
where
    Self: Sized,
{
    /// Open the stream from the path.
    fn open(path: impl AsRef<Path>) -> Result<Self, Error>;
}