pub struct PostParser;Expand description
文章解析器
Implementations§
Source§impl PostParser
impl PostParser
统计所有标签及计数
Sourcepub fn collect_years(posts: &[Post]) -> Vec<Value>
pub fn collect_years(posts: &[Post]) -> Vec<Value>
统计所有年份及计数
Sourcepub fn generate_hierarchical_categories(posts: &[Post]) -> Value
pub fn generate_hierarchical_categories(posts: &[Post]) -> Value
生成层次化的分类结构
Auto Trait Implementations§
impl Freeze for PostParser
impl RefUnwindSafe for PostParser
impl Send for PostParser
impl Sync for PostParser
impl Unpin for PostParser
impl UnwindSafe for PostParser
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