pub struct SnippetBody {
pub tokens: Vec<SnippetToken>,
}Expand description
A parsed snippet body. Just a wrapper over the token vec so the type signature in registry / load / render stays readable.
Fields§
§tokens: Vec<SnippetToken>Implementations§
Source§impl SnippetBody
impl SnippetBody
Trait Implementations§
Source§impl Clone for SnippetBody
impl Clone for SnippetBody
Source§fn clone(&self) -> SnippetBody
fn clone(&self) -> SnippetBody
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 SnippetBody
impl Debug for SnippetBody
Source§impl<'de> Deserialize<'de> for SnippetBody
impl<'de> Deserialize<'de> for SnippetBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SnippetBody
impl PartialEq for SnippetBody
Source§impl Serialize for SnippetBody
impl Serialize for SnippetBody
impl StructuralPartialEq for SnippetBody
Auto Trait Implementations§
impl Freeze for SnippetBody
impl RefUnwindSafe for SnippetBody
impl Send for SnippetBody
impl Sync for SnippetBody
impl Unpin for SnippetBody
impl UnsafeUnpin for SnippetBody
impl UnwindSafe for SnippetBody
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