pub struct ResolutionCache { /* private fields */ }Expand description
In-memory resolution cache backed by a JSON file.
Implementations§
Source§impl ResolutionCache
impl ResolutionCache
Sourcepub fn get(&self, path: &str, our_blob: &str, their_blob: &str) -> Option<&str>
pub fn get(&self, path: &str, our_blob: &str, their_blob: &str) -> Option<&str>
Look up a cached resolution for a conflicting file.
Sourcepub fn set(
&mut self,
path: &str,
our_blob: &str,
their_blob: &str,
resolved_blob: &str,
)
pub fn set( &mut self, path: &str, our_blob: &str, their_blob: &str, resolved_blob: &str, )
Store a resolution.
Trait Implementations§
Source§impl Clone for ResolutionCache
impl Clone for ResolutionCache
Source§impl Debug for ResolutionCache
impl Debug for ResolutionCache
Source§impl Default for ResolutionCache
impl Default for ResolutionCache
Source§impl<'de> Deserialize<'de> for ResolutionCache
impl<'de> Deserialize<'de> for ResolutionCache
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
Auto Trait Implementations§
impl Forget for ResolutionCache
impl Freeze for ResolutionCache
impl RefUnwindSafe for ResolutionCache
impl Send for ResolutionCache
impl Sync for ResolutionCache
impl Unpin for ResolutionCache
impl UnsafeUnpin for ResolutionCache
impl UnwindSafe for ResolutionCache
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