pub enum PathStripping {
FileName,
RepoRelative,
}
Expand description
Defines how a path is transformed into a pallet name.
Take the following example:
Compare old/pallet.rs
to new/pallet.rs
.
Obviously the pallet should have the same name in both cases.
The solution is to only look at the file name.
Next example:
Compare polkadot/pallet.rs
to polkadot/template/pallet.rs
.
It this case the pallet name is different, since it are two distinct runtimes.
The pallets should not be compared to each other but registered as Added
.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PathStripping
impl Clone for PathStripping
Source§fn clone(&self) -> PathStripping
fn clone(&self) -> PathStripping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PathStripping
impl Debug for PathStripping
Source§impl FromStr for PathStripping
impl FromStr for PathStripping
Source§impl PartialEq for PathStripping
impl PartialEq for PathStripping
Source§impl ValueEnum for PathStripping
impl ValueEnum for PathStripping
impl Copy for PathStripping
impl Eq for PathStripping
impl StructuralPartialEq for PathStripping
Auto Trait Implementations§
impl Freeze for PathStripping
impl RefUnwindSafe for PathStripping
impl Send for PathStripping
impl Sync for PathStripping
impl Unpin for PathStripping
impl UnwindSafe for PathStripping
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