pub struct Comment { /* private fields */ }Implementations§
Source§impl Comment
impl Comment
pub fn new( common: CommonAttributes, extra: Comment, children: Vec<TextOrInlineElement>, ) -> Comment
Trait Implementations§
Source§impl Element for Comment
impl Element for Comment
fn ids_mut(&mut self) -> &mut Vec<ID>
Source§fn names(&self) -> &Vec<NameToken>
fn names(&self) -> &Vec<NameToken>
a list containing the names of an element, typically originating from the element’s title or content.
Each name in names must be unique; if there are name conflicts (two or more elements want to the same name),
the contents will be transferred to the dupnames attribute on the duplicate elements.
An element may have at most one of the names or dupnames attributes, but not both.
fn names_mut(&mut self) -> &mut Vec<NameToken>
fn source(&self) -> &Option<PathBuf>
fn source_mut(&mut self) -> &mut Option<PathBuf>
fn classes(&self) -> &Vec<String>
fn classes_mut(&mut self) -> &mut Vec<String>
Source§impl ExtraAttributes<Comment> for Comment
impl ExtraAttributes<Comment> for Comment
Source§impl From<Comment> for BodyElement
impl From<Comment> for BodyElement
Source§impl From<Comment> for StructuralSubElement
impl From<Comment> for StructuralSubElement
Source§impl From<Comment> for SubBlockQuote
impl From<Comment> for SubBlockQuote
Source§impl From<Comment> for SubFootnote
impl From<Comment> for SubFootnote
Source§impl From<Comment> for SubSidebar
impl From<Comment> for SubSidebar
Source§impl From<Comment> for SubStructure
impl From<Comment> for SubStructure
Source§impl HasChildren<TextOrInlineElement> for Comment
impl HasChildren<TextOrInlineElement> for Comment
fn with_children(children: Vec<TextOrInlineElement>) -> Comment
fn children(&self) -> &Vec<TextOrInlineElement>
fn children_mut(&mut self) -> &mut Vec<TextOrInlineElement>
fn append_child<R: Into<C>>(&mut self, child: R)
fn append_children<R: Into<C> + Clone>(&mut self, more: &[R])
Source§impl JsonSchema for Comment
impl JsonSchema for Comment
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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