Skip to main content

HasText

Trait HasText 

Source
pub trait HasText {
    // 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".

Implementors§