Rebrand to Galaxy, major improvements to Bedrock support, still needs some TLC though
This commit is contained in:
@@ -16,11 +16,11 @@ use serde_yaml::Mapping;
|
||||
use weight::CustomWeight;
|
||||
|
||||
/// Trait for an "action" that can be dispatched via a hyperlink click handler.
|
||||
/// This purposefully shadows the `Action` trait from `warpui`.
|
||||
/// This purposefully shadows the `Action` trait from `galaxyui`.
|
||||
///
|
||||
/// Since `warpui` depends on this crate, we can't depend on the `warpui::Action` trait directly.
|
||||
/// Since `galaxyui` depends on this crate, we can't depend on the `galaxyui::Action` trait directly.
|
||||
/// Instead, we create a new trait with a blanket implementation that implicitly results
|
||||
/// in any `warpui::Action` implementing this `Action`.
|
||||
/// in any `galaxyui::Action` implementing this `Action`.
|
||||
pub trait Action: Any + Debug + Send + Sync {
|
||||
fn as_any(&self) -> &dyn Any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user