pub struct Platform<'a, 'repo> { /* private fields */ }
Expand description
The diffing platform returned by Tree::changes()
.
Implementations
sourceimpl<'a, 'repo> Platform<'a, 'repo>
impl<'a, 'repo> Platform<'a, 'repo>
Configuration
sourcepub fn track_filename(&mut self) -> &mut Self
pub fn track_filename(&mut self) -> &mut Self
Keep track of file-names, which makes the location
field usable with the filename of the changed item.
sourcepub fn track_path(&mut self) -> &mut Self
pub fn track_path(&mut self) -> &mut Self
Keep track of the entire path of a change, relative to the repository.
This makes the location
field usable.
sourceimpl<'a, 'old> Platform<'a, 'old>
impl<'a, 'old> Platform<'a, 'old>
Add the item to compare to.
sourcepub fn for_each_to_obtain_tree<'new, E>(
&mut self,
other: &Tree<'new>,
for_each: impl FnMut(Change<'_, 'old, 'new>) -> Result<Action, E>
) -> Result<(), Error>where
E: Error + Sync + Send + 'static,
pub fn for_each_to_obtain_tree<'new, E>(
&mut self,
other: &Tree<'new>,
for_each: impl FnMut(Change<'_, 'old, 'new>) -> Result<Action, E>
) -> Result<(), Error>where
E: Error + Sync + Send + 'static,
Call for_each
repeatedly with all changes that are needed to convert the source of the diff to the tree to other
.
Trait Implementations
Auto Trait Implementations
impl<'a, 'repo> !RefUnwindSafe for Platform<'a, 'repo>
impl<'a, 'repo> !Send for Platform<'a, 'repo>
impl<'a, 'repo> !Sync for Platform<'a, 'repo>
impl<'a, 'repo> Unpin for Platform<'a, 'repo>where
'repo: 'a,
impl<'a, 'repo> !UnwindSafe for Platform<'a, 'repo>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more