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]
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]
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]
pub fn path_string(&self) -> String
[src]Obtain the path to this file as a String.
Trait Implementations
impl StructuralPartialEq for File
[src]
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more