Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05ee34e commit ee96e26Copy full SHA for ee96e26
src/snippet.rs
@@ -190,6 +190,16 @@ impl<'a> Title<'a> {
190
self.id.get_or_insert(Id::default()).url = Some(url.into());
191
self
192
}
193
+
194
+ /// Append an [`Element`] that adds context to the [`Title`]
195
+ pub fn element(self, section: impl Into<Element<'a>>) -> Group<'a> {
196
+ Group::with_title(self).element(section)
197
+ }
198
199
+ /// Append [`Element`]s that adds context to the [`Title`]
200
+ pub fn elements(self, sections: impl IntoIterator<Item = impl Into<Element<'a>>>) -> Group<'a> {
201
+ Group::with_title(self).elements(sections)
202
203
204
205
/// A text [`Element`] in a [`Group`]
0 commit comments