pub struct ReplaceAll<S1, S2>(pub S1, pub S2);Expand description
ReplaceAll(old, new) replaces all matches old with new.
assert_eq!(ReplaceAll("foo", "bar").rewrite("foofoo"), "barbar");Tuple Fields§
§0: S1§1: S2Trait Implementations§
Source§impl<S1: Clone, S2: Clone> Clone for ReplaceAll<S1, S2>
impl<S1: Clone, S2: Clone> Clone for ReplaceAll<S1, S2>
Source§fn clone(&self) -> ReplaceAll<S1, S2>
fn clone(&self) -> ReplaceAll<S1, S2>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<S1: Copy, S2: Copy> Copy for ReplaceAll<S1, S2>
impl<S1: Eq, S2: Eq> Eq for ReplaceAll<S1, S2>
Source§impl<S1: AsRef<str>, S2: AsRef<str>> PathRewriter for ReplaceAll<S1, S2>
impl<S1: AsRef<str>, S2: AsRef<str>> PathRewriter for ReplaceAll<S1, S2>
impl<S1: PartialEq, S2: PartialEq> StructuralPartialEq for ReplaceAll<S1, S2>
Auto Trait Implementations§
impl<S1, S2> Freeze for ReplaceAll<S1, S2>
impl<S1, S2> RefUnwindSafe for ReplaceAll<S1, S2>where
S1: RefUnwindSafe,
S2: RefUnwindSafe,
impl<S1, S2> Send for ReplaceAll<S1, S2>
impl<S1, S2> Sync for ReplaceAll<S1, S2>
impl<S1, S2> Unpin for ReplaceAll<S1, S2>
impl<S1, S2> UnsafeUnpin for ReplaceAll<S1, S2>where
S1: UnsafeUnpin,
S2: UnsafeUnpin,
impl<S1, S2> UnwindSafe for ReplaceAll<S1, S2>where
S1: UnwindSafe,
S2: UnwindSafe,
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.