Trait phlow::PhlowView

source ·
pub trait PhlowView: Debug + Display + Any {
    // Required methods
    fn get_title(&self) -> &str;
    fn get_priority(&self) -> usize;
    fn get_view_type(&self) -> &str;
    fn get_defining_method(&self) -> &PhlowViewMethod;
    fn view_type() -> &'static str
       where Self: Sized;
    fn object(&self) -> &PhlowObject;
    fn as_any(&self) -> &dyn Any;
    fn to_any(self: Box<Self>) -> Box<dyn Any>;

    // Provided methods
    fn list(&self) -> PhlowListView { ... }
    fn columned_list(&self) -> PhlowColumnedListView { ... }
    fn text(&self) -> PhlowTextView { ... }
}

Required Methods§

source

fn get_title(&self) -> &str

source

fn get_priority(&self) -> usize

source

fn get_view_type(&self) -> &str

source

fn get_defining_method(&self) -> &PhlowViewMethod

source

fn view_type() -> &'static strwhere Self: Sized,

source

fn object(&self) -> &PhlowObject

source

fn as_any(&self) -> &dyn Any

source

fn to_any(self: Box<Self>) -> Box<dyn Any>

Provided Methods§

Implementors§