pub struct RenameMap { /* private fields */ }Implementations§
Source§impl RenameMap
impl RenameMap
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn new_path_for(&self, old_path: &RepoPath) -> Option<&RepoPath>
pub fn old_path_for(&self, new_path: &RepoPath) -> Option<&RepoPath>
pub fn is_renamed_destination(&self, path: &RepoPath) -> bool
pub fn is_renamed_source(&self, path: &RepoPath) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&RepoPath, &RepoPath)>
pub fn as_string_map(&self) -> BTreeMap<String, String>
Trait Implementations§
impl Eq for RenameMap
impl StructuralPartialEq for RenameMap
Auto Trait Implementations§
impl Forget for RenameMap
impl Freeze for RenameMap
impl Move for RenameMap
impl RefUnwindSafe for RenameMap
impl Send for RenameMap
impl Sync for RenameMap
impl Unpin for RenameMap
impl UnsafeUnpin for RenameMapwhere
*const LeafNode<RepoPath, RepoPath> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(RepoPath, RepoPath)>>: UnsafeUnpin,
impl UnwindSafe for RenameMap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.