serde_version

Trait VersionMap

Source
pub trait VersionMap:
    Clone
    + Sync
    + for<'a> VersionMapIter<'a> {
    // Required method
    fn get(&self, type_id: &str) -> Option<usize>;
}
Expand description

Maps the version number for each deserialization type name

Required Methods§

Source

fn get(&self, type_id: &str) -> Option<usize>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, T: VersionMap> VersionMap for &'a T
where &'a T: Clone,

Source§

fn get(&self, type_id: &str) -> Option<usize>

Source§

impl<'a, T: VersionMap> VersionMap for &'a mut T

Source§

fn get(&self, type_id: &str) -> Option<usize>

Source§

impl<T: Borrow<str> + Hash + Eq + Sync + Clone + 'static, S: BuildHasher + Sync + Clone> VersionMap for HashMap<T, usize, S>

Source§

fn get(&self, type_id: &str) -> Option<usize>

Implementors§