MCPcopy Create free account
hub / github.com/hashintel/hash / from

Method from

libs/@local/codegen/src/lib.rs:63–69  ·  view source on GitHub ↗
(data_type: &NamedDataType)

Source from the content-addressed store, hash-verified

61
62impl From<&NamedDataType> for OrderedTypeId {
63 fn from(data_type: &NamedDataType) -> Self {
64 Self {
65 module_path: data_type.module_path().clone(),
66 name: data_type.name().clone(),
67 id: data_type.sid(),
68 }
69 }
70}
71
72impl TypeCollection {

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected