Struct hyper::header::Raw
[−]
[src]
pub struct Raw(_);
A raw header value.
Methods
impl Raw
[src]
pub fn len(&self) -> usize
[src]
Returns the amount of lines.
pub fn one(&self) -> Option<&[u8]>
[src]
Returns the line if there is only 1.
pub fn iter(&self) -> RawLines
[src]
Iterate the lines of raw bytes.
pub fn push<V: Into<Raw>>(&mut self, val: V)
[src]
Append a line to this Raw
header value.
Trait Implementations
impl Clone for Raw
[src]
fn clone(&self) -> Raw
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Raw
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Raw
[src]
fn eq(&self, other: &Raw) -> bool
[src]
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]
This method tests for !=
.
impl Eq for Raw
[src]
impl PartialEq<[Vec<u8>]> for Raw
[src]
fn eq(&self, bytes: &[Vec<u8>]) -> bool
[src]
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]
This method tests for !=
.
impl<'a> PartialEq<[&'a [u8]]> for Raw
[src]
fn eq(&self, bytes: &[&[u8]]) -> bool
[src]
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]
This method tests for !=
.
impl PartialEq<[String]> for Raw
[src]
fn eq(&self, bytes: &[String]) -> bool
[src]
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]
This method tests for !=
.
impl<'a> PartialEq<[&'a str]> for Raw
[src]
fn eq(&self, bytes: &[&'a str]) -> bool
[src]
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]
This method tests for !=
.
impl PartialEq<[u8]> for Raw
[src]
fn eq(&self, bytes: &[u8]) -> bool
[src]
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]
This method tests for !=
.
impl PartialEq<str> for Raw
[src]
fn eq(&self, s: &str) -> bool
[src]
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]
This method tests for !=
.
impl From<Vec<Vec<u8>>> for Raw
[src]
impl From<String> for Raw
[src]
impl From<Vec<u8>> for Raw
[src]
impl<'a> From<&'a str> for Raw
[src]
impl<'a> From<&'a [u8]> for Raw
[src]
impl From<Bytes> for Raw
[src]
impl Index<usize> for Raw
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, idx: usize) -> &[u8]
[src]
Performs the indexing (container[index]
) operation.