struct RenamePattern {
replacement: String,
insertion_index: Option<usize>,
}
Fields§
§replacement: String
The string to replace with
insertion_index: Option<usize>
The index in replacement
in which to insert the original string. If None,
this is a pure rename
Trait Implementations§
source§impl Clone for RenamePattern
impl Clone for RenamePattern
source§fn clone(&self) -> RenamePattern
fn clone(&self) -> RenamePattern
Returns a copy 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 RenamePattern
impl Debug for RenamePattern
source§impl FromStr for RenamePattern
impl FromStr for RenamePattern
source§impl Hash for RenamePattern
impl Hash for RenamePattern
source§impl Ord for RenamePattern
impl Ord for RenamePattern
source§fn cmp(&self, other: &RenamePattern) -> Ordering
fn cmp(&self, other: &RenamePattern) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RenamePattern
impl PartialEq for RenamePattern
source§impl PartialOrd for RenamePattern
impl PartialOrd for RenamePattern
source§impl Serialize for RenamePattern
impl Serialize for RenamePattern
impl Eq for RenamePattern
impl StructuralPartialEq for RenamePattern
Auto Trait Implementations§
impl Freeze for RenamePattern
impl RefUnwindSafe for RenamePattern
impl Send for RenamePattern
impl Sync for RenamePattern
impl Unpin for RenamePattern
impl UnwindSafe for RenamePattern
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)