pub struct Sorter<'a> { /* private fields */ }Expand description
Sorter for bibliography and citation entries.
Sorts references according to style instructions, handling multi-key sorting and special cases like anonymous works falling back from author to editor to title.
Implementations§
Source§impl<'a> Sorter<'a>
impl<'a> Sorter<'a>
Sourcepub fn sort_references<'b>(
&self,
references: Vec<&'b Reference>,
) -> Vec<&'b Reference>
pub fn sort_references<'b>( &self, references: Vec<&'b Reference>, ) -> Vec<&'b Reference>
Sort references according to style instructions.
This handles multi-key sorting based on the style’s SortSpec. It includes
specific logic for handling anonymous works (falling back from author to editor
to title) and stripping articles for title-based sorting.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Sorter<'a>
impl<'a> !UnwindSafe for Sorter<'a>
impl<'a> Freeze for Sorter<'a>
impl<'a> Send for Sorter<'a>
impl<'a> Sync for Sorter<'a>
impl<'a> Unpin for Sorter<'a>
impl<'a> UnsafeUnpin for Sorter<'a>
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