capitalize Bincode
This commit is contained in:
parent
de942273a0
commit
40889ec016
|
|
@ -5,7 +5,7 @@
|
||||||
big user-friendliness issues. Major congratulations to Serde for coming this far!
|
big user-friendliness issues. Major congratulations to Serde for coming this far!
|
||||||
|
|
||||||
** Moved Refbox, Strbox and Slicebox into a "refbox" module
|
** Moved Refbox, Strbox and Slicebox into a "refbox" module
|
||||||
Refbox, Strbox and Slicebox are still an integral piece of bincode, but since
|
Refbox, Strbox and Slicebox are still an integral piece of Bincode, but since
|
||||||
they are mainly used by power-users, this move will make the crate API more organized
|
they are mainly used by power-users, this move will make the crate API more organized
|
||||||
and easier for new users to understand.
|
and easier for new users to understand.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ where
|
||||||
where
|
where
|
||||||
V: serde::de::Visitor<'de>,
|
V: serde::de::Visitor<'de>,
|
||||||
{
|
{
|
||||||
let message = "bincode does not support Deserializer::deserialize_identifier";
|
let message = "Bincode does not support Deserializer::deserialize_identifier";
|
||||||
Err(Error::custom(message))
|
Err(Error::custom(message))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -404,7 +404,7 @@ where
|
||||||
where
|
where
|
||||||
V: serde::de::Visitor<'de>,
|
V: serde::de::Visitor<'de>,
|
||||||
{
|
{
|
||||||
let message = "bincode does not support Deserializer::deserialize_ignored_any";
|
let message = "Bincode does not support Deserializer::deserialize_ignored_any";
|
||||||
Err(Error::custom(message))
|
Err(Error::custom(message))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -60,9 +60,9 @@ impl StdError for ErrorKind {
|
||||||
ErrorKind::InvalidCharEncoding => "char is not valid",
|
ErrorKind::InvalidCharEncoding => "char is not valid",
|
||||||
ErrorKind::InvalidTagEncoding(_) => "tag for enum is not valid",
|
ErrorKind::InvalidTagEncoding(_) => "tag for enum is not valid",
|
||||||
ErrorKind::SequenceMustHaveLength =>
|
ErrorKind::SequenceMustHaveLength =>
|
||||||
"bincode can only encode sequences and maps that have a knowable size ahead of time",
|
"Bincode can only encode sequences and maps that have a knowable size ahead of time",
|
||||||
ErrorKind::DeserializeAnyNotSupported => {
|
ErrorKind::DeserializeAnyNotSupported => {
|
||||||
"bincode doesn't support serde::Deserializer::deserialize_any"
|
"Bincode doesn't support serde::Deserializer::deserialize_any"
|
||||||
}
|
}
|
||||||
ErrorKind::SizeLimit => "the size limit has been reached",
|
ErrorKind::SizeLimit => "the size limit has been reached",
|
||||||
ErrorKind::Custom(ref msg) => msg,
|
ErrorKind::Custom(ref msg) => msg,
|
||||||
|
|
@ -110,7 +110,7 @@ impl fmt::Display for ErrorKind {
|
||||||
ErrorKind::DeserializeAnyNotSupported => {
|
ErrorKind::DeserializeAnyNotSupported => {
|
||||||
write!(
|
write!(
|
||||||
fmt,
|
fmt,
|
||||||
"bincode does not support the serde::Deserializer::deserialize_any method"
|
"Bincode does not support the serde::Deserializer::deserialize_any method"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
ErrorKind::Custom(ref s) => s.fmt(fmt),
|
ErrorKind::Custom(ref s) => s.fmt(fmt),
|
||||||
|
|
@ -202,7 +202,7 @@ impl SizeLimit for CountSize {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the size that an object would be if serialized using bincode.
|
/// Returns the size that an object would be if serialized using Bincode.
|
||||||
///
|
///
|
||||||
/// This is used internally as part of the check for encode_into, but it can
|
/// This is used internally as part of the check for encode_into, but it can
|
||||||
/// be useful for preallocating buffers if thats your style.
|
/// be useful for preallocating buffers if thats your style.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
//! `bincode` is a crate for encoding and decoding using a tiny binary
|
//! Bincode is a crate for encoding and decoding using a tiny binary
|
||||||
//! serialization strategy.
|
//! serialization strategy.
|
||||||
//!
|
//!
|
||||||
//! There are simple functions for encoding to `Vec<u8>` and decoding from
|
//! There are simple functions for encoding to `Vec<u8>` and decoding from
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
//!
|
//!
|
||||||
//! ## Modules
|
//! ## Modules
|
||||||
//! Until "default type parameters" lands, we have an extra module called `endian_choice`
|
//! Until "default type parameters" lands, we have an extra module called `endian_choice`
|
||||||
//! that duplicates all of the core bincode functionality but with the option to choose
|
//! that duplicates all of the core Bincode functionality but with the option to choose
|
||||||
//! which endianness the integers are encoded using.
|
//! which endianness the integers are encoded using.
|
||||||
//!
|
//!
|
||||||
//! The default endianness is little.
|
//! The default endianness is little.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue