pub struct NodeContentDescriptor {
pub description: &'static str,
pub example: &'static str,
}Expand description
Full content descriptor for a node kind that accepts authorable child content.
Returned by node_content.
Fields§
§description: &'static strShort prose description of what the child content represents.
example: &'static strA minimal, syntactically correct example of the child content written inside the parent node’s block (without the surrounding node wrapper).
Auto Trait Implementations§
impl Freeze for NodeContentDescriptor
impl RefUnwindSafe for NodeContentDescriptor
impl Send for NodeContentDescriptor
impl Sync for NodeContentDescriptor
impl Unpin for NodeContentDescriptor
impl UnsafeUnpin for NodeContentDescriptor
impl UnwindSafe for NodeContentDescriptor
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