diff --git a/01.workspace/heave/src/str/entity.rs b/01.workspace/heave/src/str/entity.rs index 917cb02..979990e 100644 --- a/01.workspace/heave/src/str/entity.rs +++ b/01.workspace/heave/src/str/entity.rs @@ -52,6 +52,9 @@ impl O { Some(attribute) => Some(attribute.value), } } + pub fn has_attribute(&self, id: &str) -> bool { + self.attributes.contains_key(id) + } pub fn unwrap(&self, id: &str) -> T where T: From,