first pass of merging in warp (doesn't build)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
use std::any::Any;
|
||||
use std::collections::VecDeque;
|
||||
use std::fmt;
|
||||
use std::fmt::Debug;
|
||||
use std::ops::Range;
|
||||
use std::sync::Arc;
|
||||
use std::{collections::VecDeque, fmt, fmt::Debug};
|
||||
|
||||
pub mod html_parser;
|
||||
pub mod markdown_parser;
|
||||
@@ -18,9 +20,9 @@ use weight::CustomWeight;
|
||||
/// Trait for an "action" that can be dispatched via a hyperlink click handler.
|
||||
/// This purposefully shadows the `Action` trait from `galaxyui`.
|
||||
///
|
||||
/// Since `galaxyui` depends on this crate, we can't depend on the `galaxyui::Action` trait directly.
|
||||
/// Since `galaxyui` depends on this crate, we can't depend on the `galaxyui_core::Action` trait directly.
|
||||
/// Instead, we create a new trait with a blanket implementation that implicitly results
|
||||
/// in any `galaxyui::Action` implementing this `Action`.
|
||||
/// in any `galaxyui_core::Action` implementing this `Action`.
|
||||
pub trait Action: Any + Debug + Send + Sync {
|
||||
fn as_any(&self) -> &dyn Any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user