pub struct AppendSuffix<S>(pub S);Expand description
Appends a suffix.
assert_eq!(AppendSuffix("foo").rewrite("bar"), "barfoo");Tuple Fields§
§0: STrait Implementations§
Source§impl<S: Clone> Clone for AppendSuffix<S>
impl<S: Clone> Clone for AppendSuffix<S>
Source§fn clone(&self) -> AppendSuffix<S>
fn clone(&self) -> AppendSuffix<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 AppendSuffix<S>
Source§impl<S: Debug> Debug for AppendSuffix<S>
impl<S: Debug> Debug for AppendSuffix<S>
impl<S: Eq> Eq for AppendSuffix<S>
Source§impl<S: PartialEq> PartialEq for AppendSuffix<S>
impl<S: PartialEq> PartialEq for AppendSuffix<S>
Source§impl<S: AsRef<str>> PathRewriter for AppendSuffix<S>
impl<S: AsRef<str>> PathRewriter for AppendSuffix<S>
impl<S: PartialEq> StructuralPartialEq for AppendSuffix<S>
Auto Trait Implementations§
impl<S> Freeze for AppendSuffix<S>where
S: Freeze,
impl<S> RefUnwindSafe for AppendSuffix<S>where
S: RefUnwindSafe,
impl<S> Send for AppendSuffix<S>where
S: Send,
impl<S> Sync for AppendSuffix<S>where
S: Sync,
impl<S> Unpin for AppendSuffix<S>where
S: Unpin,
impl<S> UnsafeUnpin for AppendSuffix<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AppendSuffix<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.