Trait zng_wgt_markdown::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.

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§