Struct hyper::header::Raw
[−]
[src]
pub struct Raw(_);
A raw header value.
Methods
impl Raw
[src]
fn len(&self) -> usize
Returns the amount of lines.
fn one(&self) -> Option<&[u8]>
Returns the line if there is only 1.
fn iter(&self) -> RawLines
Iterate the lines of raw bytes.
fn push(&mut self, val: &[u8])
Append a line to this Raw
header value.
Trait Implementations
impl Clone for Raw
[src]
fn clone(&self) -> Raw
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
impl PartialEq for Raw
[src]
fn eq(&self, __arg_0: &Raw) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Raw) -> bool
This method tests for !=
.
impl Eq for Raw
[src]
impl PartialEq<[Vec<u8>]> for Raw
[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
This method tests for !=
.
impl PartialEq<[u8]> for Raw
[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
This method tests for !=
.
impl PartialEq<str> for Raw
[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
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 From<&'static str> for Raw
[src]
impl From<&'static [u8]> for Raw
[src]
fn from(val: &'static [u8]) -> Raw
Performs the conversion.
impl Debug for Raw
[src]
impl Index<usize> for Raw
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, idx: usize) -> &[u8]
The method for the indexing (container[index]
) operation