pub struct VirtualText(pub String);Expand description
Currently a wrapper for String, but could be something else down the road. Frees
us from needing to change the public API later.
Tuple Fields§
§0: StringImplementations§
Source§impl VirtualText
impl VirtualText
Sourcepub fn new(s: String) -> VirtualText
pub fn new(s: String) -> VirtualText
Given a String, returns a VirtualText node.
Trait Implementations§
Source§impl Clone for VirtualText
impl Clone for VirtualText
Source§fn clone(&self) -> VirtualText
fn clone(&self) -> VirtualText
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VirtualText
impl Debug for VirtualText
Auto Trait Implementations§
impl Freeze for VirtualText
impl RefUnwindSafe for VirtualText
impl Send for VirtualText
impl Sync for VirtualText
impl Unpin for VirtualText
impl UnsafeUnpin for VirtualText
impl UnwindSafe for VirtualText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more