pub struct Markup<'a>(pub &'a str);Expand description
A string that is already markup, and is emitted without escaping.
The one hole in the escaping, and it has to be named to be used. goingson has two live callers that need it, both passing a recurrence-config block built elsewhere, and both would otherwise have their markup rendered as visible angle brackets. A caller constructing this is stating that the contents are trusted; nothing here can check that for them.
Tuple Fields§
§0: &'a strTrait Implementations§
impl<'a> Copy for Markup<'a>
impl<'a> Eq for Markup<'a>
impl<'a> StructuralPartialEq for Markup<'a>
Auto Trait Implementations§
impl<'a> Freeze for Markup<'a>
impl<'a> RefUnwindSafe for Markup<'a>
impl<'a> Send for Markup<'a>
impl<'a> Sync for Markup<'a>
impl<'a> Unpin for Markup<'a>
impl<'a> UnsafeUnpin for Markup<'a>
impl<'a> UnwindSafe for Markup<'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