pub struct AbbreviationMap(pub HashMap<String, String>);Expand description
Document-level map from full rendered strings to their abbreviations.
Keys are the full rendered string (exact, case-sensitive). Values are the replacement abbreviation. Applied after value extraction, before output.
Accepts both abbreviation-map (YAML frontmatter) and abbreviation_map forms.
Tuple Fields§
§0: HashMap<String, String>Trait Implementations§
Source§impl Clone for AbbreviationMap
impl Clone for AbbreviationMap
Source§fn clone(&self) -> AbbreviationMap
fn clone(&self) -> AbbreviationMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbbreviationMap
impl Debug for AbbreviationMap
Source§impl Default for AbbreviationMap
impl Default for AbbreviationMap
Source§fn default() -> AbbreviationMap
fn default() -> AbbreviationMap
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AbbreviationMap
impl<'de> Deserialize<'de> for AbbreviationMap
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AbbreviationMap, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AbbreviationMap, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AbbreviationMap
impl Serialize for AbbreviationMap
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AbbreviationMap
impl RefUnwindSafe for AbbreviationMap
impl Send for AbbreviationMap
impl Sync for AbbreviationMap
impl Unpin for AbbreviationMap
impl UnsafeUnpin for AbbreviationMap
impl UnwindSafe for AbbreviationMap
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