[][src]Struct hyper::header::Raw

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]

impl Debug for Raw[src]

impl Eq for Raw[src]

impl<'a> From<&'a [u8]> for Raw[src]

impl<'a> From<&'a str> for Raw[src]

impl From<Bytes> for Raw[src]

impl From<String> for Raw[src]

impl From<Vec<Vec<u8>>> for Raw[src]

impl From<Vec<u8>> for Raw[src]

impl Index<usize> for Raw[src]

type Output = [u8]

The returned type after indexing.

impl<'a> IntoIterator for &'a Raw[src]

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.

impl<'a> PartialEq<[&'a [u8]]> for Raw[src]

impl<'a> PartialEq<[&'a str]> for Raw[src]

impl PartialEq<[String]> for Raw[src]

impl PartialEq<[Vec<u8>]> for Raw[src]

impl PartialEq<[u8]> for Raw[src]

impl PartialEq<Raw> for Raw[src]

impl PartialEq<str> for Raw[src]

Auto Trait Implementations

impl RefUnwindSafe for Raw

impl Send for Raw

impl Sync for Raw

impl Unpin for Raw

impl UnwindSafe for Raw

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.