pub struct Item { /* private fields */ }
Expand description
Represents the location of a dotfile (the source) and the location of the symlink pointing to the source (the destination) as a pair of absolute paths to the two files.
Implementations§
Source§impl Item
impl Item
pub fn source(&self) -> &AbsolutePath
pub fn dest(&self) -> &AbsolutePath
Source§impl Item
impl Item
pub fn new( source: impl Into<AbsolutePath>, dest: impl Into<AbsolutePath>, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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