serde 0.6.0

A generic serialization/deserialization framework
Documentation
b0VIM 7.4^��U9��JericktErick-Tryzelaar-MBP.local~erickt/projects/rust/serde/serde/serde/src/bytes.rsutf-8
3210#"! Utp?fA3�adk	�
?���������10�����[ �
�
�
�
�
�
|
b
X
R
P
O
$
��������ta[YX4�����oNH�
�
�
<
8
4
�	�	�	�	�	�	�	�	�	b	P	%					��tnlkJ+��������gD0*('������~f`^]>����������i(&%���oigfKJ$
	�����od^]O�����    {        where V: d     {        where V: de::SeqVisitor,    fn visit_seq<V>(&mut self, mut visitor: V) -> Result<ByteBuf, V::Error>    #[inline]    }        })            bytes: Vec::new(),        Ok(ByteBuf {    {        where E: de::Error,    fn visit_unit<E>(&mut self) -> Result<ByteBuf, E>    #[inline]    type Value = ByteBuf;impl de::Visitor for ByteBufVisitor {pub struct ByteBufVisitor;}    }        serializer.visit_bytes(&self)    {        where S: ser::Serializer    fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>impl ser::Serialize for ByteBuf {}    fn deref_mut(&mut self) -> &mut [u8] { &mut self.bytes[..] }impl ops::DerefMut for ByteBuf {}    fn deref(&self) -> &[u8] { &self.bytes[..] }    type Target = [u8];impl ops::Deref for ByteBuf {}    }        &mut self.bytes    fn as_mut(&mut self) -> &mut [u8] {impl AsMut<[u8]> for ByteBuf {}    }        &mut self.bytes    fn as_mut(&mut self) -> &mut Vec<u8> {impl AsMut<Vec<u8>> for ByteBuf {}    }        &self.bytes    fn as_ref(&self) -> &[u8] {impl AsRef<[u8]> for ByteBuf {}    }        &self.bytes    fn as_ref(&self) -> &Vec<u8> {impl AsRef<Vec<u8>> for ByteBuf {}    }        }            bytes: bytes,        ByteBuf {    fn from(bytes: Vec<u8>) -> Self {impl From<Vec<u8>> for ByteBuf {}    }        self.bytes    fn into(self) -> Vec<u8> {impl Into<Vec<u8>> for ByteBuf {}    }        write!(f, "b\"{}\"", escape_bytestring(self.bytes.as_ref()))    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for ByteBuf {}    }        }            bytes: Vec::with_capacity(cap)        ByteBuf {    pub fn with_capacity(cap: usize) -> Self {    }        }            bytes: Vec::new(),        ByteBuf {    pub fn new() -> Self {impl B/// `ByteBuf` wraps a `Vec<u8/// in order to hook into serialize/// /// /// in order to hook into serialize and from deserialize a byte array./// `ByteBuf` wraps a `Vec<u8>` and serializes as a byte array.///////////////////////////////////////////////////////////////////////////////}    }        serializer.visit_bytes(self.bytes)    {        where S: ser::Serializer    fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>    #[inline]impl<'a> ser::Serialize for Bytes<'a> {}    fn deref(&self) -> &[u8] { self.bytes }    type Target = [u8];impl<'a> ops::Deref for Bytes<'a> {}    }        self.bytes    fn into(self) -> &'a [u8] {impl<'a> Into<&'a [u8]> for Bytes<'a> {}    }        }            bytes: &bytes,        Bytes {    fn from(bytes: &'a Vec<u8>) -> Self {impl<'a> From<&'a Vec<u8>> for Bytes<'a> {}    }        }            bytes: bytes,        Bytes {    fn from(bytes: &'a [u8]) -> Self {impl<'a> From<&'a [u8]> for Bytes<'a> {}    }        write!(f, "b\"{}\"", escape_bytestring(self.bytes))    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl<'a> fmt::Debug for Bytes<'a> {}    bytes: &'a [u8],pub struct Bytes<'a> {#[derive(Clone, Copy, Eq, Hash, PartialEq, PartialOrd, Ord)]/// `Bytes` wraps a `&[u8]` in order to serialize into a byte array.///////////////////////////////////////////////////////////////////////////////use de;use ser;use std::ascii;use std::fmt;use std::ops;//! Helper module to enable serializing bytes more efficientlyad�
�3���iI?>! ������smE?>0�
�
�
�
�
�
�
�
�
f
X

������]\-	��������}    result    }        }            result.push(esc as char);        for esc in ascii::escape_default(b) {    for &b in bytes {    let mut result = String::new();fn escape_bytestring(bytes: &[u8]) -> String {///////////////////////////////////////////////////////////////////////////////}    }        deserializer.visit_bytes(ByteBufVisitor)    {        where D: de::Deserializer    fn deserialize<D>(deserializer: &mut D) -> Result<ByteBuf, D::Error>    #[inline]impl de::Deserialize for ByteBuf {}    }        })            bytes: v,        Ok(ByteBuf {    {        where E: de::Error,    fn visit_byte_buf<E>(&mut self, v: Vec<u8>) -> Result<ByteBuf, E>    #[inline]    }        self.visit_byte_buf(v.to_vec())    {        where E: de::Error,    fn visit_bytes<E>(&mut self, v: &[u8]) -> Result<ByteBuf, E>    #[inline]    }        })            bytes: values,        Ok(ByteBuf {        try!(visitor.end());        }            values.push(value);        while let Some(value) = try!(visitor.visit()) {        let mut values = Vec::with_capacity(len);        let (len, _) = visitor.size_hint();ad�f������dI7���UKECB$�
�
�
�
�
z
[
H
B
@
?

��������t`ZXW8���������nF.(&%�
�
�
�
�
�
X
V
U
3
�	�	�	�	�	�	�	M	2	1		������uVKED6���    {        where V: de::SeqVisitor,    fn visit_seq<V>(&mut self, mut visitor: V) -> Result<ByteBuf, V::Error>    #[inline]    }        })            bytes: Vec::new(),        Ok(ByteBuf {    {        where E: de::Error,    fn visit_unit<E>(&mut self) -> Result<ByteBuf, E>    #[inline]    type Value = ByteBuf;impl de::Visitor for ByteBufVisitor {pub struct ByteBufVisitor;/// This type implements the `serde::de::Visitor` trait for a `ByteBuf`.}    }        serializer.visit_bytes(&self)    {        where S: ser::Serializer    fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error>impl ser::Serialize for ByteBuf {}    fn deref_mut(&mut self) -> &mut [u8] { &mut self.bytes[..] }impl ops::DerefMut for ByteBuf {}    fn deref(&self) -> &[u8] { &self.bytes[..] }    type Target = [u8];impl ops::Deref for ByteBuf {}    }        &mut self.bytes    fn as_mut(&mut self) -> &mut [u8] {impl AsMut<[u8]> for ByteBuf {}    }        &mut self.bytes    fn as_mut(&mut self) -> &mut Vec<u8> {impl AsMut<Vec<u8>> for ByteBuf {}    }        &self.bytes    fn as_ref(&self) -> &[u8] {impl AsRef<[u8]> for ByteBuf {}    }        &self.bytes    fn as_ref(&self) -> &Vec<u8> {impl AsRef<Vec<u8>> for ByteBuf {}    }        }            bytes: bytes,        ByteBuf {    fn from(bytes: Vec<u8>) -> Self {impl From<Vec<u8>> for ByteBuf {}    }        self.bytes    fn into(self) -> Vec<u8> {impl Into<Vec<u8>> for ByteBuf {}    }        write!(f, "b\"{}\"", escape_bytestring(self.bytes.as_ref()))    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for ByteBuf {}    }        }            bytes: Vec::with_capacity(cap)        ByteBuf {    pub fn with_capacity(cap: usize) -> Self {    /// Construct a new, empty `ByteBuf` with the specified capacity.    }        }            bytes: Vec::new(),        ByteBuf {    pub fn new() -> Self {    /// Construct a new, empty `ByteBuf`.impl ByteBuf {}    bytes: Vec<u8>,pub struct ByteBuf {#[derive(Clone, Eq, Hash, PartialEq, PartialOrd, Ord)]