improve ergonomics of custom drivers and add a counter example to rink
This commit is contained in:
1 parent
b255800511
commit
ae1300b015
8 files changed
+338
-364
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user