Struct hyper::header::Raw
[−]
[src]
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: Into<Raw>>(&mut self, val: V)
[src]
pub fn push<V: Into<Raw>>(&mut self, val: V)
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, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Raw
[src]
impl PartialEq 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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Raw
[src]
impl Eq for Raw
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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl PartialEq<[u8]> for Raw
[src]
impl PartialEq<[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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
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
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl From<Vec<Vec<u8>>> for Raw
[src]
impl From<Vec<Vec<u8>>> for Raw
impl From<String> for Raw
[src]
impl From<String> for Raw
impl From<Vec<u8>> for Raw
[src]
impl From<Vec<u8>> for Raw
impl<'a> From<&'a str> for Raw
[src]
impl<'a> From<&'a str> for Raw
impl<'a> From<&'a [u8]> for Raw
[src]
impl<'a> From<&'a [u8]> for Raw
impl From<Bytes> for Raw
[src]
impl From<Bytes> for Raw
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<'a> IntoIterator for &'a Raw
[src]
impl<'a> IntoIterator for &'a Raw