mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-03 21:08:18 +00:00
Hook up request animation frame plumbing to decouple execution
This commit is contained in:
parent
fffbaa6de2
commit
c648e25e8c
8 changed files with 108 additions and 8 deletions
|
@ -251,7 +251,8 @@ impl<'a> TaggedValue {
|
|||
pub fn try_from_any(input: Box<dyn DynAny<'a> + 'a>) -> Option<Self> {
|
||||
use dyn_any::downcast;
|
||||
use std::any::TypeId;
|
||||
match DynAny::type_id(&input) {
|
||||
|
||||
match DynAny::type_id(input.as_ref()) {
|
||||
x if x == TypeId::of::<()>() => Some(TaggedValue::None),
|
||||
x if x == TypeId::of::<String>() => Some(TaggedValue::String(*downcast(input).unwrap())),
|
||||
x if x == TypeId::of::<u32>() => Some(TaggedValue::U32(*downcast(input).unwrap())),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue