#[repr(transparent)]pub struct BinaryKeyWrapper<T> {
pub inner: T,
}Expand description
Wrapper for binary key, though you have to make sure the key is valid (with -bin suffix).
§Panics
Panics if the key is not valid (with -bin suffix) when debug mode.
This is an auto-generated wrapper over T
Fields§
§inner: TInner value
Implementations§
Source§impl<T> BinaryKeyWrapper<T>
impl<T> BinaryKeyWrapper<T>
Sourcepub const fn new(inner: T) -> Self
pub const fn new(inner: T) -> Self
Creates a new instance of BinaryKeyWrapper
Trait Implementations§
Source§impl<T> AsRef<T> for BinaryKeyWrapper<T>
impl<T> AsRef<T> for BinaryKeyWrapper<T>
Source§impl<T> Borrow<T> for BinaryKeyWrapper<T>
impl<T> Borrow<T> for BinaryKeyWrapper<T>
Source§impl<T: Clone> Clone for BinaryKeyWrapper<T>
impl<T: Clone> Clone for BinaryKeyWrapper<T>
Source§fn clone(&self) -> BinaryKeyWrapper<T>
fn clone(&self) -> BinaryKeyWrapper<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for BinaryKeyWrapper<T>
impl<T: Debug> Debug for BinaryKeyWrapper<T>
Source§impl<T> Deref for BinaryKeyWrapper<T>
impl<T> Deref for BinaryKeyWrapper<T>
Source§impl<T> DerefMut for BinaryKeyWrapper<T>
impl<T> DerefMut for BinaryKeyWrapper<T>
Source§impl<T> From<T> for BinaryKeyWrapper<T>
impl<T> From<T> for BinaryKeyWrapper<T>
Source§impl<T: Hash> Hash for BinaryKeyWrapper<T>
impl<T: Hash> Hash for BinaryKeyWrapper<T>
Source§impl<T: HeaderKeyT> HeaderKeyT for BinaryKeyWrapper<T>
impl<T: HeaderKeyT> HeaderKeyT for BinaryKeyWrapper<T>
Source§fn as_str_ext(&self) -> &str
fn as_str_ext(&self) -> &str
as_str_ext and most times should be &’staticSource§fn to_header_name(self) -> HeaderName
fn to_header_name(self) -> HeaderName
Get the key name
Source§fn default_header_value(&self) -> Option<HeaderValue>
fn default_header_value(&self) -> Option<HeaderValue>
Get default value of the key Read more
Source§impl<T: PartialEq> PartialEq for BinaryKeyWrapper<T>
impl<T: PartialEq> PartialEq for BinaryKeyWrapper<T>
impl<T: Copy> Copy for BinaryKeyWrapper<T>
impl<T: Eq> Eq for BinaryKeyWrapper<T>
impl<T: HeaderKeyT> HeaderBinaryKeyT for BinaryKeyWrapper<T>
impl<T> StructuralPartialEq for BinaryKeyWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for BinaryKeyWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for BinaryKeyWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for BinaryKeyWrapper<T>where
T: Send,
impl<T> Sync for BinaryKeyWrapper<T>where
T: Sync,
impl<T> Unpin for BinaryKeyWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for BinaryKeyWrapper<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