pub struct Rendering {
pub template: String,
pub bound: Vec<Binding>,
}Expand description
A variant’s message, as the emission spends it.
Fields§
§template: StringThe template with every placeholder rewritten to name a binding, and the code folded in at the front — so the whole rendering is ONE literal and nothing at runtime assembles it.
bound: Vec<Binding>The fields the template referred to: the binding each is introduced under, and how the pattern reaches it.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Rendering
impl !Sync for Rendering
impl Freeze for Rendering
impl RefUnwindSafe for Rendering
impl Unpin for Rendering
impl UnsafeUnpin for Rendering
impl UnwindSafe for Rendering
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