[−][src]Struct reqwest::header::Raw
pub struct Raw(_);
A raw header value.
Methods
impl Raw
[src]
impl Raw
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the amount of lines.
pub fn one(&self) -> Option<&[u8]>
[src]
pub fn one(&self) -> Option<&[u8]>
Returns the line if there is only 1.
pub fn iter(&self) -> RawLines
[src]
pub fn iter(&self) -> RawLines
Iterate the lines of raw bytes.
pub fn push<V>(&mut self, val: V) where
V: Into<Raw>,
[src]
pub fn push<V>(&mut self, val: V) where
V: Into<Raw>,
Append a line to this Raw
header value.
Trait Implementations
impl Clone for Raw
[src]
impl Clone for Raw
fn clone(&self) -> Raw
[src]
fn clone(&self) -> Raw
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Raw
[src]
impl Debug for Raw
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Vec<Vec<u8>>> for Raw
[src]
impl From<Vec<Vec<u8>>> for Raw
impl<'a> From<&'a [u8]> for Raw
[src]
impl<'a> From<&'a [u8]> for Raw
impl From<Vec<u8>> for Raw
[src]
impl From<Vec<u8>> for Raw
impl From<Bytes> for Raw
[src]
impl From<Bytes> for Raw
impl From<String> for Raw
[src]
impl From<String> for Raw
impl<'a> From<&'a str> for Raw
[src]
impl<'a> From<&'a str> for Raw
impl<'a> IntoIterator for &'a Raw
[src]
impl<'a> IntoIterator for &'a Raw
type IntoIter = RawLines<'a>
Which kind of iterator are we turning this into?
type Item = &'a [u8]
The type of the elements being iterated over.
fn into_iter(self) -> RawLines<'a>
[src]
fn into_iter(self) -> RawLines<'a>
Creates an iterator from a value. Read more
impl Index<usize> for Raw
[src]
impl Index<usize> for Raw
type Output = [u8]
The returned type after indexing.
fn index(&self, idx: usize) -> &[u8]
[src]
fn index(&self, idx: usize) -> &[u8]
Performs the indexing (container[index]
) operation.
impl Eq for Raw
[src]
impl Eq for Raw
impl PartialEq<str> for Raw
[src]
impl PartialEq<str> for Raw
fn eq(&self, s: &str) -> bool
[src]
fn eq(&self, s: &str) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<[&'a [u8]]> for Raw
[src]
impl<'a> PartialEq<[&'a [u8]]> for Raw
fn eq(&self, bytes: &[&[u8]]) -> bool
[src]
fn eq(&self, bytes: &[&[u8]]) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<Raw> for Raw
[src]
impl PartialEq<Raw> for Raw
fn eq(&self, other: &Raw) -> bool
[src]
fn eq(&self, other: &Raw) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<[String]> for Raw
[src]
impl PartialEq<[String]> for Raw
fn eq(&self, bytes: &[String]) -> bool
[src]
fn eq(&self, bytes: &[String]) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<[Vec<u8>]> for Raw
[src]
impl PartialEq<[Vec<u8>]> for Raw
fn eq(&self, bytes: &[Vec<u8>]) -> bool
[src]
fn eq(&self, bytes: &[Vec<u8>]) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<'a> PartialEq<[&'a str]> for Raw
[src]
impl<'a> PartialEq<[&'a str]> for Raw
fn eq(&self, bytes: &[&'a str]) -> bool
[src]
fn eq(&self, bytes: &[&'a str]) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<[u8]> for Raw
[src]
impl PartialEq<[u8]> for Raw
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
ⓘImportant traits for &'a mut Wfn borrow(&self) -> &T
[src]
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
ⓘImportant traits for &'a mut Wfn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more