pub struct Narrow<T>(pub T);
Expand description
Newtype wrapper intend to be used around String
s or str
slices to bind them always as narrow
text independent of wether the narrow
feature is set or not.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<'a> IntoParameter for Narrow<&'a str>
impl<'a> IntoParameter for Narrow<&'a str>
Auto Trait Implementations§
impl<T> Freeze for Narrow<T>where
T: Freeze,
impl<T> RefUnwindSafe for Narrow<T>where
T: RefUnwindSafe,
impl<T> Send for Narrow<T>where
T: Send,
impl<T> Sync for Narrow<T>where
T: Sync,
impl<T> Unpin for Narrow<T>where
T: Unpin,
impl<T> UnwindSafe for Narrow<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