append_docs_as_toml_comments

Function append_docs_as_toml_comments 

Source
pub fn append_docs_as_toml_comments(decor: &mut Decor, docs: &str)
Expand description

Appends documentation lines as TOML comments to the given Decor.

This function transforms each line in the provided documentation string into a TOML comment (prefixed with #) and appends it to the existing comment prefix in decor, preserving formatting.

ยงArguments

  • decor - Mutable reference to the TOML Decor where comments should be inserted.
  • docs - The documentation string to convert to TOML comments.