Struct elastic_requests::Body
[−]
[src]
pub struct Body<'a>(_);
Methods
impl<'a> Body<'a>
[src]
fn into_inner(self) -> Cow<'a, [u8]>
impl<'a> Body<'a>
[src]
fn none() -> Self
Methods from Deref<Target=Cow<'a, [u8]>>
fn into_owned(self) -> B::Owned
1.0.0
Extracts the owned data.
Clones the data if it is not already owned.
Examples
use std::borrow::Cow; let cow: Cow<[_]> = Cow::Owned(vec![1, 2, 3]); let hello = cow.into_owned(); assert_eq!(vec![1, 2, 3], hello);
Trait Implementations
impl<'a> Debug for Body<'a>
[src]
impl<'a> PartialEq for Body<'a>
[src]
fn eq(&self, __arg_0: &Body<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Body<'a>) -> bool
This method tests for !=
.
impl<'a> Clone for Body<'a>
[src]
fn clone(&self) -> Body<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more