Update mod.rs
Co-authored-by: Gino Valente <49806985+MrGVSV@users.noreply.github.com>
This commit is contained in:
parent
671c3b6828
commit
b84e878ab2
@ -59,7 +59,7 @@ impl SchemaTypesMetadata {
|
|||||||
self.has_data_type_by_id(TypeId::of::<T>(), types_string_slice)
|
self.has_data_type_by_id(TypeId::of::<T>(), types_string_slice)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// checks if slice contains string value that matches checked `TypeData` by id.
|
/// Checks if slice contains string value that matches checked `TypeData` by id.
|
||||||
pub fn has_data_type_by_id(&self, id: TypeId, types_string_slice: &[String]) -> bool {
|
pub fn has_data_type_by_id(&self, id: TypeId, types_string_slice: &[String]) -> bool {
|
||||||
self.data_types
|
self.data_types
|
||||||
.get(&id)
|
.get(&id)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user