pub enum StrOrBytes<'a> {
Utf8(&'a str),
Bytes(&'a [u8]),
}Variants§
Trait Implementations§
Source§impl AsRef<[u8]> for StrOrBytes<'_>
impl AsRef<[u8]> for StrOrBytes<'_>
Source§impl<'a> Debug for StrOrBytes<'a>
impl<'a> Debug for StrOrBytes<'a>
Source§impl<'a> From<&'a [u8]> for StrOrBytes<'a>
impl<'a> From<&'a [u8]> for StrOrBytes<'a>
Source§impl<'a> From<&'a String> for StrOrBytes<'a>
impl<'a> From<&'a String> for StrOrBytes<'a>
Auto Trait Implementations§
impl<'a> Freeze for StrOrBytes<'a>
impl<'a> RefUnwindSafe for StrOrBytes<'a>
impl<'a> Send for StrOrBytes<'a>
impl<'a> Sync for StrOrBytes<'a>
impl<'a> Unpin for StrOrBytes<'a>
impl<'a> UnwindSafe for StrOrBytes<'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