#[non_exhaustive]pub enum Format {
Auto,
Refs,
CslJson,
Bibtex,
}Expand description
Input-shape discriminator per ADR-0030 D4.
Auto means “detect from path extension and/or content
fingerprint”; the explicit variants name a parser directly and
skip detection.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Auto
Detect from file extension if a path was supplied, else from
content fingerprint; fall through to Format::Refs.
Refs
Plain refs — one identifier per line, # comments, blanks.
CslJson
CSL-JSON array per https://citationstyles.org/.
Bibtex
BibTeX / BibLaTeX. Currently unsupported — parser ships in a follow-up slice.
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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