TextSpanAccess

Trait TextSpanAccess 

Source
pub trait TextSpanAccess: Component<Mutability = Mutable> {
    // Required methods
    fn read_span(&self) -> &str;
    fn write_span(&mut self) -> &mut String;
}
Expand description

Helper trait for using the TextReader and TextWriter system params.

Required Methods§

Source

fn read_span(&self) -> &str

Gets the text span’s string.

Source

fn write_span(&mut self) -> &mut String

Gets mutable reference to the text span’s string.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§