pub struct Slug {
pub prefix: String,
}Expand description
html.slug: ids on headings, from their text; options named as rehype-slug names
them.
Fields§
§prefix: StringPut before each id.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Slug
impl<'de> Deserialize<'de> for Slug
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 Transform for Slug
impl Transform for Slug
fn input(&self) -> TreeKind
fn output(&self) -> TreeKind
fn run<'a>( &self, tree: Tree<'a>, _file: &mut File, alloc: &'a Allocator, ) -> Result<Tree<'a>, Error>
Auto Trait Implementations§
impl Freeze for Slug
impl RefUnwindSafe for Slug
impl Send for Slug
impl Sync for Slug
impl Unpin for Slug
impl UnsafeUnpin for Slug
impl UnwindSafe for Slug
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