Compare commits
1 Commits
feat/rende
...
main
Author | SHA1 | Date |
---|---|---|
SeanOMik | 62adcf2b50 |
|
@ -49,6 +49,13 @@ impl DynTypeId {
|
||||||
DynTypeId::Unknown(_) => panic!("This type is unknown to rust, cannot construct a TypeId from it!"),
|
DynTypeId::Unknown(_) => panic!("This type is unknown to rust, cannot construct a TypeId from it!"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn as_unknown(&self) -> Option<u128> {
|
||||||
|
match self {
|
||||||
|
DynTypeId::Rust(_) => None,
|
||||||
|
DynTypeId::Unknown(id) => Some(*id),
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Some information about a component.
|
/// Some information about a component.
|
||||||
|
|
Loading…
Reference in New Issue