#[cfg(feature = "alloc")] use alloc::borrow::Cow; #[cfg(all(feature = "std", not(feature = "alloc")))] use std::borrow::Cow;
#[cfg(feature = "alloc")] use alloc::boxed::Box;
#[cfg(feature = "alloc")] use alloc::vec::Vec;
/// Types that can be serialized via `#[serde(with = "serde_bytes")]`. pubtrait Serialize { #[allow(missing_docs)] fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer;
}
impl Serialize for [u8] { fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
{
serializer.serialize_bytes(self)
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.