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§
Sourcefn write_span(&mut self) -> &mut String
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.