pub enum Part<'a> {
Str(&'a str),
Display(&'a dyn Display),
}Expand description
A borrowed key or value of a query string pair.
You usually don’t interact with this type directly; it is produced by the
IntoPart conversions accepted by QueryString’s methods.
Variants§
Str(&'a str)
A plain string slice.
Display(&'a dyn Display)
Any other borrowed Display value, rendered on demand.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Part<'a>
impl<'a> !Send for Part<'a>
impl<'a> !Sync for Part<'a>
impl<'a> !UnwindSafe for Part<'a>
impl<'a> Freeze for Part<'a>
impl<'a> Unpin for Part<'a>
impl<'a> UnsafeUnpin for Part<'a>
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