improve ergonomics of custom drivers and add a counter example to rink

This commit is contained in:
Evan Almloff committed 2023-03-13 21:26:44 -05:00
1 parent b255800511
commit ae1300b015
8 files changed
+338 -364

No files matched your search

+4 -2
View File
@@ -933,9 +933,11 @@ impl<V: FromAnyValue + Send + Sync> ElementNodeMut<'_, V> {
/// Set an attribute in the element
pub fn set_attribute(
&mut self,
name: OwnedAttributeDiscription,
value: OwnedAttributeValue<V>,
name: impl Into<OwnedAttributeDiscription>,
value: impl Into<OwnedAttributeValue<V>>,
) -> Option<OwnedAttributeValue<V>> {
let name = name.into();
let value = value.into();
self.dirty_nodes.mark_dirty(
self.id,
NodeMaskBuilder::new()