pub struct Static<S>(pub S);Expand description
Returns self.0 regardless what the path is.
assert_eq!(Static("bar").rewrite("foo"), "bar");Tuple Fields§
§0: STrait Implementations§
impl<S: Copy> Copy for Static<S>
impl<S: Eq> Eq for Static<S>
impl<S: PartialEq> StructuralPartialEq for Static<S>
Auto Trait Implementations§
impl<S> Freeze for Static<S>where
S: Freeze,
impl<S> RefUnwindSafe for Static<S>where
S: RefUnwindSafe,
impl<S> Send for Static<S>where
S: Send,
impl<S> Sync for Static<S>where
S: Sync,
impl<S> Unpin for Static<S>where
S: Unpin,
impl<S> UnsafeUnpin for Static<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Static<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.