pub struct AppendPrefix<S>(pub S);Expand description
Appends a prefix by plain string concatenation.
A prefix ending in / produces // when the path starts with /. Use AppendPathPrefix to join slash-safely.
assert_eq!(AppendPrefix("foo").rewrite("bar"), "foobar");Tuple Fields§
§0: STrait Implementations§
Source§impl<S: Clone> Clone for AppendPrefix<S>
impl<S: Clone> Clone for AppendPrefix<S>
Source§fn clone(&self) -> AppendPrefix<S>
fn clone(&self) -> AppendPrefix<S>
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<S: Copy> Copy for AppendPrefix<S>
Source§impl<S: Debug> Debug for AppendPrefix<S>
impl<S: Debug> Debug for AppendPrefix<S>
impl<S: Eq> Eq for AppendPrefix<S>
Source§impl<S: PartialEq> PartialEq for AppendPrefix<S>
impl<S: PartialEq> PartialEq for AppendPrefix<S>
Source§impl<S: AsRef<str>> PathRewriter for AppendPrefix<S>
impl<S: AsRef<str>> PathRewriter for AppendPrefix<S>
impl<S: PartialEq> StructuralPartialEq for AppendPrefix<S>
Auto Trait Implementations§
impl<S> Freeze for AppendPrefix<S>where
S: Freeze,
impl<S> RefUnwindSafe for AppendPrefix<S>where
S: RefUnwindSafe,
impl<S> Send for AppendPrefix<S>where
S: Send,
impl<S> Sync for AppendPrefix<S>where
S: Sync,
impl<S> Unpin for AppendPrefix<S>where
S: Unpin,
impl<S> UnsafeUnpin for AppendPrefix<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AppendPrefix<S>where
S: 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.