Struct tugger_file_manifest::File [−][src]
Represents a virtual file, with an associated path.
Fields
path: PathBuf
entry: FileEntry
Implementations
impl File
[src]
impl File
[src]pub fn new(path: impl AsRef<Path>, entry: FileEntry) -> Self
[src]
Create a new instance from a path and FileEntry
.
pub fn to_memory(&self) -> Result<Self, Error>
[src]
Obtain an instance that is guaranteed to be backed by memory.
pub fn path_string(&self) -> String
[src]
Obtain the path to this file as a String.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl RefUnwindSafe for File
impl UnwindSafe for File
impl UnwindSafe for File