pub struct Uppercase<T>(pub T);Expand description
Display T in uppercase using char::to_uppercase(). Unicode compatible.
Due to current limitations in the standard library, this only works with
Display, not other formatting traits.
§Example
assert_eq!(Uppercase("abc").to_string(), "ABC");
assert_eq!(Uppercase("äöå").to_string(), "ÄÖÅ");Tuple Fields§
§0: TTrait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Uppercase<T>where
T: Freeze,
impl<T> RefUnwindSafe for Uppercase<T>where
T: RefUnwindSafe,
impl<T> Send for Uppercase<T>where
T: Send,
impl<T> Sync for Uppercase<T>where
T: Sync,
impl<T> Unpin for Uppercase<T>where
T: Unpin,
impl<T> UnsafeUnpin for Uppercase<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Uppercase<T>where
T: 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