pub struct Escaped<'a>(pub &'a str);Expand description
text with each { doubled, so that markup draws it as it is: for a
name a player typed, say, in a text that has markup of its own.
use nadir_render::Escaped;
assert_eq!(Escaped("{c:#f00}").to_string(), "{{c:#f00}");Tuple Fields§
§0: &'a strTrait Implementations§
impl<'a> Copy for Escaped<'a>
impl<'a> Eq for Escaped<'a>
impl<'a> StructuralPartialEq for Escaped<'a>
Auto Trait Implementations§
impl<'a> Forget for Escaped<'a>
impl<'a> Freeze for Escaped<'a>
impl<'a> Move for Escaped<'a>
impl<'a> RefUnwindSafe for Escaped<'a>
impl<'a> Send for Escaped<'a>
impl<'a> Sync for Escaped<'a>
impl<'a> Unpin for Escaped<'a>
impl<'a> UnsafeUnpin for Escaped<'a>
impl<'a> UnwindSafe for Escaped<'a>
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