//! Implements `RSX::VirtualText`, which holds data pertaining to <Text>, primarily.
usestd::fmt::{Display, Debug};/// Currently a wrapper for `String`, but could be something else down the road. Frees
/// us from needing to change the public API later.
#[derive(Clone)]pubstructVirtualText(pub String);implVirtualText{/// Given a `String`, returns a `VirtualText` node.
pubfnnew(s: String)-> VirtualText{
VirtualText(s)}}implDisplay forVirtualText{/// Formatting for `VirtualText` display.
fnfmt(&self, f:&mutstd::fmt::Formatter)->Result<(), std::fmt::Error>{write!(f,"{}",self.0)}}implDebug forVirtualText{/// Formatting for `VirtualText` debugging.
fnfmt(&self, f:&mutstd::fmt::Formatter)->std::fmt::Result{write!(f,"VirtualText({})",self.0)}}