Struct jsonrpc_client_http::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>(&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 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<'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<Raw> for Raw
[src]
impl PartialEq<Raw> 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 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<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 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 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, 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 Raw
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.
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 Raw
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<'a> From<&'a [u8]> for Raw
[src]
impl<'a> From<&'a [u8]> for Raw
impl<'a> From<&'a str> for Raw
[src]
impl<'a> From<&'a str> for Raw
impl From<Vec<u8>> for Raw
[src]
impl From<Vec<u8>> 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 Eq for Raw
[src]
impl Eq for Raw