Struct http::method::extension::AllocatedExtension
source · pub struct AllocatedExtension(Box<[u8]>);
Tuple Fields§
§0: Box<[u8]>
Implementations§
source§impl AllocatedExtension
impl AllocatedExtension
pub fn new(src: &[u8]) -> Result<AllocatedExtension, InvalidMethod>
pub fn as_str(&self) -> &str
Trait Implementations§
source§impl Clone for AllocatedExtension
impl Clone for AllocatedExtension
source§fn clone(&self) -> AllocatedExtension
fn clone(&self) -> AllocatedExtension
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 Hash for AllocatedExtension
impl Hash for AllocatedExtension
source§impl PartialEq for AllocatedExtension
impl PartialEq for AllocatedExtension
impl Eq for AllocatedExtension
impl StructuralPartialEq for AllocatedExtension
Auto Trait Implementations§
impl Freeze for AllocatedExtension
impl RefUnwindSafe for AllocatedExtension
impl Send for AllocatedExtension
impl Sync for AllocatedExtension
impl Unpin for AllocatedExtension
impl UnwindSafe for AllocatedExtension
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)