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