pub struct ProxyRelinker { /* private fields */ }Expand description
Manager for proxy-to-original relinking.
Implementations§
Source§impl ProxyRelinker
impl ProxyRelinker
Sourcepub fn register_original(&mut self, path: PathBuf)
pub fn register_original(&mut self, path: PathBuf)
Register an original file for matching.
Sourcepub fn relink(&self, proxy_path: &PathBuf) -> Option<RelinkResult>
pub fn relink(&self, proxy_path: &PathBuf) -> Option<RelinkResult>
Try to relink a proxy path to its original.
Tries filename-hash match first, then stem-pattern match.
Sourcepub fn original_count(&self) -> usize
pub fn original_count(&self) -> usize
Number of registered originals.
Trait Implementations§
Source§impl Debug for ProxyRelinker
impl Debug for ProxyRelinker
Auto Trait Implementations§
impl Freeze for ProxyRelinker
impl RefUnwindSafe for ProxyRelinker
impl Send for ProxyRelinker
impl Sync for ProxyRelinker
impl Unpin for ProxyRelinker
impl UnsafeUnpin for ProxyRelinker
impl UnwindSafe for ProxyRelinker
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more