pub struct Quote<T>(pub T);Expand description
Wraps a value in double quotes when displayed.
§Examples
use diskann_benchmark_runner::utils::fmt::Quote;
assert_eq!(Quote("hello").to_string(), "\"hello\"");
assert_eq!(Quote(42).to_string(), "\"42\"");Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for Quote<T>
Auto Trait Implementations§
impl<T> Freeze for Quote<T>where
T: Freeze,
impl<T> RefUnwindSafe for Quote<T>where
T: RefUnwindSafe,
impl<T> Send for Quote<T>where
T: Send,
impl<T> Sync for Quote<T>where
T: Sync,
impl<T> Unpin for Quote<T>where
T: Unpin,
impl<T> UnsafeUnpin for Quote<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Quote<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