Struct jsonrpc_client_http::header::Raw [−][src]
pub struct Raw(_);
A raw header value.
Methods
impl Raw[src]
impl Rawpub fn len(&self) -> usize[src]
pub fn len(&self) -> usizeReturns 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) -> RawLinesIterate 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 PartialEq<[u8]> for Raw[src]
impl PartialEq<[u8]> for Rawfn eq(&self, bytes: &[u8]) -> bool[src]
fn eq(&self, bytes: &[u8]) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<[&'a [u8]]> for Raw[src]
impl<'a> PartialEq<[&'a [u8]]> for Rawfn eq(&self, bytes: &[&[u8]]) -> bool[src]
fn eq(&self, bytes: &[&[u8]]) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<Raw> for Raw[src]
impl PartialEq<Raw> for Rawfn eq(&self, other: &Raw) -> bool[src]
fn eq(&self, other: &Raw) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<[String]> for Raw[src]
impl PartialEq<[String]> for Rawfn eq(&self, bytes: &[String]) -> bool[src]
fn eq(&self, bytes: &[String]) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a> PartialEq<[&'a str]> for Raw[src]
impl<'a> PartialEq<[&'a str]> for Rawfn eq(&self, bytes: &[&'a str]) -> bool[src]
fn eq(&self, bytes: &[&'a str]) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<str> for Raw[src]
impl PartialEq<str> for Rawfn eq(&self, s: &str) -> bool[src]
fn eq(&self, s: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl PartialEq<[Vec<u8>]> for Raw[src]
impl PartialEq<[Vec<u8>]> for Rawfn eq(&self, bytes: &[Vec<u8>]) -> bool[src]
fn eq(&self, bytes: &[Vec<u8>]) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Clone for Raw[src]
impl Clone for Rawfn clone(&self) -> Raw[src]
fn clone(&self) -> RawReturns 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 Rawfn 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<'a> IntoIterator for &'a Raw[src]
impl<'a> IntoIterator for &'a Rawtype 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 From<Bytes> for Raw[src]
impl From<Bytes> for Rawimpl From<Vec<Vec<u8>>> for Raw[src]
impl From<Vec<Vec<u8>>> for Rawimpl From<String> for Raw[src]
impl From<String> for Rawimpl<'a> From<&'a [u8]> for Raw[src]
impl<'a> From<&'a [u8]> for Rawimpl<'a> From<&'a str> for Raw[src]
impl<'a> From<&'a str> for Rawimpl From<Vec<u8>> for Raw[src]
impl From<Vec<u8>> for Rawimpl Index<usize> for Raw[src]
impl Index<usize> for Rawtype 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