pub struct SnippetBlock {
pub name: String,
pub params: Vec<String>,
pub body: Vec<Node>,
}Expand description
{#snippet name(p1, p2)}...{/snippet}
Fields§
§name: String§params: Vec<String>§body: Vec<Node>Trait Implementations§
Source§impl Clone for SnippetBlock
impl Clone for SnippetBlock
Source§fn clone(&self) -> SnippetBlock
fn clone(&self) -> SnippetBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SnippetBlock
impl RefUnwindSafe for SnippetBlock
impl Send for SnippetBlock
impl Sync for SnippetBlock
impl Unpin for SnippetBlock
impl UnsafeUnpin for SnippetBlock
impl UnwindSafe for SnippetBlock
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