pub enum MemberName<'uri> {
Borrowed(&'uri [u8]),
Owned(OwnedVec<u8>),
}Expand description
The common root-relative, unescaped form borrows the owner’s existing URI view. Joining/decoding alone needs a funded buffer; lookup need not retain it.
Variants§
Borrowed(&'uri [u8])
No allocation, copy or account reference-count increment.
Owned(OwnedVec<u8>)
Actual retained capacity for a joined or percent-decoded name.
Trait Implementations§
Source§impl AsRef<[u8]> for MemberName<'_>
impl AsRef<[u8]> for MemberName<'_>
Auto Trait Implementations§
impl<'uri> !Freeze for MemberName<'uri>
impl<'uri> RefUnwindSafe for MemberName<'uri>
impl<'uri> Send for MemberName<'uri>
impl<'uri> Sync for MemberName<'uri>
impl<'uri> Unpin for MemberName<'uri>
impl<'uri> UnsafeUnpin for MemberName<'uri>
impl<'uri> UnwindSafe for MemberName<'uri>
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