pub struct AppendPrefix<'a>(pub &'a str);
Expand description
Appends a prefix.
assert_eq!(AppendPrefix("foo").rewrite("bar"), "foobar");
Tuple Fields§
§0: &'a str
Trait Implementations§
Source§impl<'a> Clone for AppendPrefix<'a>
impl<'a> Clone for AppendPrefix<'a>
Source§fn clone(&self) -> AppendPrefix<'a>
fn clone(&self) -> AppendPrefix<'a>
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<'a> Debug for AppendPrefix<'a>
impl<'a> Debug for AppendPrefix<'a>
Source§impl<'a> PartialEq for AppendPrefix<'a>
impl<'a> PartialEq for AppendPrefix<'a>
Source§impl PathRewriter for AppendPrefix<'_>
impl PathRewriter for AppendPrefix<'_>
impl<'a> Copy for AppendPrefix<'a>
impl<'a> Eq for AppendPrefix<'a>
impl<'a> StructuralPartialEq for AppendPrefix<'a>
Auto Trait Implementations§
impl<'a> Freeze for AppendPrefix<'a>
impl<'a> RefUnwindSafe for AppendPrefix<'a>
impl<'a> Send for AppendPrefix<'a>
impl<'a> Sync for AppendPrefix<'a>
impl<'a> Unpin for AppendPrefix<'a>
impl<'a> UnwindSafe for AppendPrefix<'a>
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.