Skip to main content

WidgetInfoExt

Trait WidgetInfoExt 

Source
pub trait WidgetInfoExt {
    // Required methods
    fn anchor(&self) -> Option<&Txt>;
    fn is_markdown(&self) -> bool;
    fn find_anchor(&self, anchor: &str) -> Option<WidgetInfo>;
}
Expand description

Markdown extension methods for widget info.

Required Methods§

Source

fn anchor(&self) -> Option<&Txt>

Gets the anchor.

Source

fn is_markdown(&self) -> bool

If this widget is a Markdown!.

Source

fn find_anchor(&self, anchor: &str) -> Option<WidgetInfo>

Find descendant tagged by the given anchor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WidgetInfoExt for WidgetInfo

Source§

fn anchor(&self) -> Option<&Txt>

Source§

fn is_markdown(&self) -> bool

Source§

fn find_anchor(&self, anchor: &str) -> Option<WidgetInfo>

Implementors§