pub struct InstalledFile { /* private fields */ }Expand description
A single file belonging to an installed package.
Implementations§
Source§impl InstalledFile
impl InstalledFile
Sourcepub fn new(relative_path: impl Into<Utf8PathBuf>, linked: bool) -> Self
pub fn new(relative_path: impl Into<Utf8PathBuf>, linked: bool) -> Self
Create a new installed file entry.
relative_path is expected to be relative to the package install root.
Sourcepub fn relative_path(&self) -> &Utf8PathBuf
pub fn relative_path(&self) -> &Utf8PathBuf
Borrow the relative path of the file.
Trait Implementations§
Source§impl Clone for InstalledFile
impl Clone for InstalledFile
Source§fn clone(&self) -> InstalledFile
fn clone(&self) -> InstalledFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstalledFile
impl Debug for InstalledFile
Source§impl<'de> Deserialize<'de> for InstalledFile
impl<'de> Deserialize<'de> for InstalledFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstalledFile
Source§impl PartialEq for InstalledFile
impl PartialEq for InstalledFile
Source§impl Serialize for InstalledFile
impl Serialize for InstalledFile
impl StructuralPartialEq for InstalledFile
Auto Trait Implementations§
impl Freeze for InstalledFile
impl RefUnwindSafe for InstalledFile
impl Send for InstalledFile
impl Sync for InstalledFile
impl Unpin for InstalledFile
impl UnsafeUnpin for InstalledFile
impl UnwindSafe for InstalledFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more