pub struct AutolinkHeadings {
pub aria_label: Option<String>,
pub class_name: Option<String>,
pub icon_class_name: Option<String>,
}Expand description
Anchor injector for headings.
Fields§
§aria_label: Option<String>aria-label to put on the anchor. Defaults to "Link to section".
class_name: Option<String>className to put on the anchor. Defaults to "subheading-anchor".
icon_class_name: Option<String>className for the inner <span> icon. Defaults to "icon icon-link".
Implementations§
Trait Implementations§
Source§impl Debug for AutolinkHeadings
impl Debug for AutolinkHeadings
Source§impl Default for AutolinkHeadings
impl Default for AutolinkHeadings
Source§fn default() -> AutolinkHeadings
fn default() -> AutolinkHeadings
Returns the “default value” for a type. Read more
Source§impl Transformer for AutolinkHeadings
impl Transformer for AutolinkHeadings
Auto Trait Implementations§
impl Freeze for AutolinkHeadings
impl RefUnwindSafe for AutolinkHeadings
impl Send for AutolinkHeadings
impl Sync for AutolinkHeadings
impl Unpin for AutolinkHeadings
impl UnsafeUnpin for AutolinkHeadings
impl UnwindSafe for AutolinkHeadings
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more