[−][src]Trait rustc_ap_rustc_serialize::Encodable
Trait for types that can be serialized
This can be implemented using the Encodable
, TyEncodable
and
MetadataEncodable
macros.
Encodable
should be used in crates that don't depend onrustc_middle
.MetadataEncodable
is used inrustc_metadata
for types that containrustc_metadata::rmeta::Lazy
.TyEncodable
should be used for types that are only serialized in crate metadata or the incremental cache. This is most types inrustc_middle
.
Required methods
Loading content...Implementations on Foreign Types
impl<S: Encoder, A: Array<Item: Encodable<S>>> Encodable<S> for SmallVec<A>
[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for LinkedList<T>
[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for VecDeque<T>
[src]
impl<S: Encoder, K, V> Encodable<S> for BTreeMap<K, V> where
K: Encodable<S> + PartialEq + Ord,
V: Encodable<S>,
[src]
K: Encodable<S> + PartialEq + Ord,
V: Encodable<S>,
impl<S: Encoder, T> Encodable<S> for BTreeSet<T> where
T: Encodable<S> + PartialEq + Ord,
[src]
T: Encodable<S> + PartialEq + Ord,
impl<E: Encoder, K, V, S> Encodable<E> for HashMap<K, V, S> where
K: Encodable<E> + Eq,
V: Encodable<E>,
S: BuildHasher,
[src]
K: Encodable<E> + Eq,
V: Encodable<E>,
S: BuildHasher,
impl<E: Encoder, T, S> Encodable<E> for HashSet<T, S> where
T: Encodable<E> + Eq,
S: BuildHasher,
[src]
T: Encodable<E> + Eq,
S: BuildHasher,
impl<E: Encoder, T, S, '_> Encodable<E> for &'_ HashSet<T, S> where
T: Encodable<E> + Eq,
S: BuildHasher,
[src]
T: Encodable<E> + Eq,
S: BuildHasher,
impl<E: Encoder, K, V, S> Encodable<E> for IndexMap<K, V, S> where
K: Encodable<E> + Hash + Eq,
V: Encodable<E>,
S: BuildHasher,
[src]
K: Encodable<E> + Hash + Eq,
V: Encodable<E>,
S: BuildHasher,
impl<E: Encoder, T, S> Encodable<E> for IndexSet<T, S> where
T: Encodable<E> + Hash + Eq,
S: BuildHasher,
[src]
T: Encodable<E> + Hash + Eq,
S: BuildHasher,
impl<E: Encoder, T: Encodable<E>> Encodable<E> for Rc<[T]>
[src]
impl<E: Encoder, T: Encodable<E>> Encodable<E> for Arc<[T]>
[src]
impl<S: Encoder> Encodable<S> for usize
[src]
impl<S: Encoder> Encodable<S> for u8
[src]
impl<S: Encoder> Encodable<S> for u16
[src]
impl<S: Encoder> Encodable<S> for u32
[src]
impl<S: Encoder> Encodable<S> for u64
[src]
impl<S: Encoder> Encodable<S> for u128
[src]
impl<S: Encoder> Encodable<S> for isize
[src]
impl<S: Encoder> Encodable<S> for i8
[src]
impl<S: Encoder> Encodable<S> for i16
[src]
impl<S: Encoder> Encodable<S> for i32
[src]
impl<S: Encoder> Encodable<S> for i64
[src]
impl<S: Encoder> Encodable<S> for i128
[src]
impl<S: Encoder> Encodable<S> for f32
[src]
impl<S: Encoder> Encodable<S> for f64
[src]
impl<S: Encoder> Encodable<S> for bool
[src]
impl<S: Encoder> Encodable<S> for char
[src]
impl<S: Encoder> Encodable<S> for NonZeroU32
[src]
impl<S: Encoder> Encodable<S> for str
[src]
impl<S: Encoder, '_> Encodable<S> for &'_ str
[src]
impl<S: Encoder> Encodable<S> for String
[src]
impl<S: Encoder> Encodable<S> for ()
[src]
impl<S: Encoder, T> Encodable<S> for PhantomData<T>
[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for Rc<T>
[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for [T]
[src]
impl<S: Encoder, T: Encodable<S>> Encodable<S> for Vec<T>
[src]
impl<S: Encoder> Encodable<S> for [u8; 20]
[src]
impl<'a, S: Encoder, T: Encodable<S>> Encodable<S> for Cow<'a, [T]> where
[T]: ToOwned<Owned = Vec<T>>,
[src]
[T]: ToOwned<Owned = Vec<T>>,