Skip to main content

TextExt

Trait TextExt 

Source
pub trait TextExt {
    // Required method
    fn text(&self) -> Option<&str>;
}
Expand description

A trait for types that have a text field, allowing access to the text content.

Required Methods§

Source

fn text(&self) -> Option<&str>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TextExt for String

Source§

fn text(&self) -> Option<&str>

Implementors§