[−][src]Crate biblatex
A crate for parsing Bib(La)TeX files.
The main API entrypoint is a Bibliography
.
Example
Finding out the author of a work.
let src = "@book{tolkien1937, author = {J. R. R. Tolkien}}"; let bibliography = Bibliography::parse(src).unwrap(); let entry = bibliography.get("tolkien1937").unwrap(); let author = entry.author().unwrap(); assert_eq!(author[0].name, "Tolkien");
Structs
Bibliography | A fully parsed bibliography. |
Date | A date or a range of dates and their certainty and exactness. |
Datetime | Timezone-unaware date and time. |
Entry | A bibliography entry containing chunk fields, which can be parsed into more specific types on demand. |
Person | An author, editor, or some other person affiliated with a cited work. |
RawBibliography | A literal representation of a bibliography file, with abbreviations not yet resolved. |
RawEntry | A raw extracted entry, with abbreviations not yet resolved. |
Enums
Chunk | Represents one part of a field value. |
DateValue | A single date or a range of dates. |
Edition | The edition of a printed publication. |
EditorType | Which role the according editor had. |
EntryType | Describes the type of a bibliographical entry. |
Gender | Gender of the author or editor (if no author was specified). |
Pagination | Defines the pagination scheme to use for formatting purposes. |
Traits
ChunksExt | Additional methods for chunk slices. |
Type | Convert Bib(La)TeX data types from and to chunk slices. |
Type Definitions
Chunks | A sequence of chunks. |