Skip to main content

Entry

Struct Entry 

Source
pub struct Entry {
    pub key: String,
    pub entry_type: EntryType,
    pub fields: BTreeMap<String, Chunks>,
}
Expand description

A bibliography entry containing chunk fields, which can be parsed into more specific types on demand.

Fields§

§key: String

The citation key.

§entry_type: EntryType

Denotes the type of bibliography item (e.g., Article).

§fields: BTreeMap<String, Chunks>

Maps from field names to their associated chunk vectors.

Implementations§

Source§

impl Entry

Source

pub fn new(key: String, entry_type: EntryType) -> Self

Construct new, empty entry.

Source

pub fn get(&self, key: &str) -> Option<ChunksRef<'_>>

Get the chunk slice of a field.

The field key must be lowercase.

Source

pub fn get_as<T: Type>(&self, key: &str) -> Result<T, RetrievalError>

Parse the value of a field into a specific type.

The field key must be lowercase.

Source

pub fn set(&mut self, key: &str, chunks: Chunks)

Set the chunk slice for a field.

The field key is lowercase before insertion.

Source

pub fn set_as<T: Type>(&mut self, key: &str, value: &T)

Set the value of a field as a specific type.

The field key is lowercase before insertion.

Source

pub fn remove(&mut self, key: &str) -> Option<Chunks>

Remove a field from the entry.

Source

pub fn parents(&self) -> Result<Vec<String>, TypeError>

The parents of an entry in a semantic sense (crossref and xref).

Source

pub fn verify(&self) -> Report

Verify if the entry has the appropriate fields for its EntryType.

Source

pub fn to_biblatex_string(&self) -> String

Serialize this entry into a BibLaTeX string.

Source

pub fn to_bibtex_string(&self) -> Result<String, TypeError>

Serialize this entry into a BibTeX string.

This function can return an error if there is a malformed date field.

Source§

impl Entry

Source

pub fn author(&self) -> Result<Vec<Person>, RetrievalError>

Get the author field.

Source

pub fn set_author(&mut self, item: Vec<Person>)

Set the value of the author field.

Source

pub fn book_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the booktitle field.

Source

pub fn set_book_title(&mut self, item: Chunks)

Set the value of the booktitle field.

Source

pub fn chapter(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the chapter field.

Source

pub fn set_chapter(&mut self, item: Chunks)

Set the value of the chapter field.

Source

pub fn edition(&self) -> Result<PermissiveType<i64>, RetrievalError>

Get the edition field.

Source

pub fn set_edition(&mut self, item: PermissiveType<i64>)

Set the value of the edition field.

Source

pub fn how_published(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the howpublished field.

Source

pub fn set_how_published(&mut self, item: Chunks)

Set the value of the howpublished field.

Source

pub fn note(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the note field.

Source

pub fn set_note(&mut self, item: Chunks)

Set the value of the note field.

Source

pub fn number(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the number field.

Source

pub fn set_number(&mut self, item: Chunks)

Set the value of the number field.

Source

pub fn organization(&self) -> Result<Vec<Chunks>, RetrievalError>

Get the organization field.

Source

pub fn set_organization(&mut self, item: Vec<Chunks>)

Set the value of the organization field.

Source

pub fn pages(&self) -> Result<PermissiveType<Vec<Range<u32>>>, RetrievalError>

Get the pages field.

Source

pub fn set_pages(&mut self, item: PermissiveType<Vec<Range<u32>>>)

Set the value of the pages field.

Source

pub fn publisher(&self) -> Result<Vec<Chunks>, RetrievalError>

Get the publisher field.

Source

pub fn set_publisher(&mut self, item: Vec<Chunks>)

Set the value of the publisher field.

Source

pub fn series(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the series field.

Source

pub fn set_series(&mut self, item: Chunks)

Set the value of the series field.

Source

pub fn title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the title field.

Source

pub fn set_title(&mut self, item: Chunks)

Set the value of the title field.

Source

pub fn type_(&self) -> Result<String, RetrievalError>

Get the type field.

Source

pub fn set_type_(&mut self, item: String)

Set the value of the type field.

Source

pub fn volume(&self) -> Result<PermissiveType<i64>, RetrievalError>

Get the volume field.

Source

pub fn set_volume(&mut self, item: PermissiveType<i64>)

Set the value of the volume field.

Source

pub fn address(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the address field, falling back on location if address is empty.

Source

pub fn set_address(&mut self, item: Chunks)

Set the value of the address field.

Source

pub fn location(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the location field, falling back on address if location is empty.

Source

pub fn set_location(&mut self, item: Chunks)

Set the value of the location field.

Source

pub fn annotation(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the annotation field, falling back on annote if annotation is empty.

Source

pub fn set_annotation(&mut self, item: Chunks)

Set the value of the annotation field.

Source

pub fn eprint_type(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the eprinttype field, falling back on archiveprefix if eprinttype is empty.

Source

pub fn set_eprint_type(&mut self, item: Chunks)

Set the value of the eprinttype field.

Source

pub fn eprint_class(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the eprintclass field, falling back on primaryclass if eprintclass is empty.

Source

pub fn set_eprint_class(&mut self, item: Chunks)

Set the value of the eprintclass field.

Source

pub fn journal(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the journal field, falling back on journaltitle if journal is empty.

Source

pub fn set_journal(&mut self, item: Chunks)

Set the value of the journal field.

Source

pub fn journal_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the journaltitle field, falling back on journal if journaltitle is empty.

Source

pub fn set_journal_title(&mut self, item: Chunks)

Set the value of the journaltitle field.

Source

pub fn sort_key(&self) -> Result<String, RetrievalError>

Get the key field, falling back on sortkey if key is empty.

Source

pub fn set_sort_key(&mut self, item: String)

Set the value of the key field.

Source

pub fn file(&self) -> Result<String, RetrievalError>

Get the file field, falling back on pdf if file is empty.

Source

pub fn set_file(&mut self, item: String)

Set the value of the file field.

Source

pub fn school(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the school field, falling back on institution if school is empty.

Source

pub fn set_school(&mut self, item: Chunks)

Set the value of the school field.

Source

pub fn institution(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the institution field, falling back on school if institution is empty.

Source

pub fn set_institution(&mut self, item: Chunks)

Set the value of the institution field.

Source

pub fn date(&self) -> Result<PermissiveType<Date>, RetrievalError>

Get the date field, falling back on the year, month, and day fields if it is not present.

Source

pub fn set_date(&mut self, item: PermissiveType<Date>)

Set the value of the date field, removing the year, month, and day fields if present.

Source

pub fn event_date(&self) -> Result<PermissiveType<Date>, RetrievalError>

Get the eventdate field, falling back on the eventyear, eventmonth, and eventday fields if it is not present.

Source

pub fn set_event_date(&mut self, item: PermissiveType<Date>)

Set the value of the eventdate field, removing the eventyear, eventmonth, and eventday fields if present.

Source

pub fn orig_date(&self) -> Result<PermissiveType<Date>, RetrievalError>

Get the origdate field, falling back on the origyear, origmonth, and origday fields if it is not present.

Source

pub fn set_orig_date(&mut self, item: PermissiveType<Date>)

Set the value of the origdate field, removing the origyear, origmonth, and origday fields if present.

Source

pub fn url_date(&self) -> Result<PermissiveType<Date>, RetrievalError>

Get the urldate field, falling back on the urlyear, urlmonth, and urlday fields if it is not present.

Source

pub fn set_url_date(&mut self, item: PermissiveType<Date>)

Set the value of the urldate field, removing the urlyear, urlmonth, and urlday fields if present.

Source

pub fn editors(&self) -> Result<Vec<(Vec<Person>, EditorType)>, TypeError>

Get the editor and editora through editorc fields and their respective editortype annotation fields, returning a vector with zero to four entries, one for each editorial role.

The default EditorType::Editor is assumed if the type field is empty.

Source

pub fn abstract_(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the abstract field.

Source

pub fn set_abstract_(&mut self, item: Chunks)

Set the value of the abstract field.

Source

pub fn addendum(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the addendum field.

Source

pub fn set_addendum(&mut self, item: Chunks)

Set the value of the addendum field.

Source

pub fn afterword(&self) -> Result<Vec<Person>, RetrievalError>

Get the afterword field.

Source

pub fn set_afterword(&mut self, item: Vec<Person>)

Set the value of the afterword field.

Source

pub fn annotator(&self) -> Result<Vec<Person>, RetrievalError>

Get the annotator field.

Source

pub fn set_annotator(&mut self, item: Vec<Person>)

Set the value of the annotator field.

Source

pub fn author_type(&self) -> Result<String, RetrievalError>

Get the authortype field.

Source

pub fn set_author_type(&mut self, item: String)

Set the value of the authortype field.

Source

pub fn book_author(&self) -> Result<Vec<Person>, RetrievalError>

Get the bookauthor field.

Source

pub fn set_book_author(&mut self, item: Vec<Person>)

Set the value of the bookauthor field.

Source

pub fn book_pagination(&self) -> Result<Pagination, RetrievalError>

Get the bookpagination field.

Source

pub fn set_book_pagination(&mut self, item: Pagination)

Set the value of the bookpagination field.

Source

pub fn book_subtitle(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the booksubtitle field.

Source

pub fn set_book_subtitle(&mut self, item: Chunks)

Set the value of the booksubtitle field.

Source

pub fn book_title_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the booktitleaddon field.

Source

pub fn set_book_title_addon(&mut self, item: Chunks)

Set the value of the booktitleaddon field.

Source

pub fn commentator(&self) -> Result<Vec<Person>, RetrievalError>

Get the commentator field.

Source

pub fn set_commentator(&mut self, item: Vec<Person>)

Set the value of the commentator field.

Source

pub fn doi(&self) -> Result<String, RetrievalError>

Get the doi field.

Source

pub fn set_doi(&mut self, item: String)

Set the value of the doi field.

Source

pub fn eid(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the eid field.

Source

pub fn set_eid(&mut self, item: Chunks)

Set the value of the eid field.

Source

pub fn entry_subtype(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the entrysubtype field.

Source

pub fn set_entry_subtype(&mut self, item: Chunks)

Set the value of the entrysubtype field.

Source

pub fn eprint(&self) -> Result<String, RetrievalError>

Get the eprint field.

Source

pub fn set_eprint(&mut self, item: String)

Set the value of the eprint field.

Source

pub fn eventtitle(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the eventtitle field.

Source

pub fn set_eventtitle(&mut self, item: Chunks)

Set the value of the eventtitle field.

Source

pub fn eventtitle_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the eventtitleaddon field.

Source

pub fn set_eventtitle_addon(&mut self, item: Chunks)

Set the value of the eventtitleaddon field.

Source

pub fn foreword(&self) -> Result<Vec<Person>, RetrievalError>

Get the foreword field.

Source

pub fn set_foreword(&mut self, item: Vec<Person>)

Set the value of the foreword field.

Source

pub fn holder(&self) -> Result<Vec<Person>, RetrievalError>

Get the holder field.

Source

pub fn set_holder(&mut self, item: Vec<Person>)

Set the value of the holder field.

Source

pub fn index_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the indextitle field.

Source

pub fn set_index_title(&mut self, item: Chunks)

Set the value of the indextitle field.

Source

pub fn introduction(&self) -> Result<Vec<Person>, RetrievalError>

Get the introduction field.

Source

pub fn set_introduction(&mut self, item: Vec<Person>)

Set the value of the introduction field.

Source

pub fn isan(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the isan field.

Source

pub fn set_isan(&mut self, item: Chunks)

Set the value of the isan field.

Source

pub fn isbn(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the isbn field.

Source

pub fn set_isbn(&mut self, item: Chunks)

Set the value of the isbn field.

Source

pub fn ismn(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the ismn field.

Source

pub fn set_ismn(&mut self, item: Chunks)

Set the value of the ismn field.

Source

pub fn isrn(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the isrn field.

Source

pub fn set_isrn(&mut self, item: Chunks)

Set the value of the isrn field.

Source

pub fn issn(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the issn field.

Source

pub fn set_issn(&mut self, item: Chunks)

Set the value of the issn field.

Source

pub fn issue(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the issue field.

Source

pub fn set_issue(&mut self, item: Chunks)

Set the value of the issue field.

Source

pub fn issue_subtitle(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the issuesubtitle field.

Source

pub fn set_issue_subtitle(&mut self, item: Chunks)

Set the value of the issuesubtitle field.

Source

pub fn issue_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the issuetitle field.

Source

pub fn set_issue_title(&mut self, item: Chunks)

Set the value of the issuetitle field.

Source

pub fn issue_title_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the issuetitleaddon field.

Source

pub fn set_issue_title_addon(&mut self, item: Chunks)

Set the value of the issuetitleaddon field.

Source

pub fn iswc(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the iswc field.

Source

pub fn set_iswc(&mut self, item: Chunks)

Set the value of the iswc field.

Source

pub fn journal_subtitle(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the journalsubtitle field.

Source

pub fn set_journal_subtitle(&mut self, item: Chunks)

Set the value of the journalsubtitle field.

Source

pub fn journal_title_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the journaltitleaddon field.

Source

pub fn set_journal_title_addon(&mut self, item: Chunks)

Set the value of the journaltitleaddon field.

Source

pub fn keywords(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the keywords field.

Source

pub fn set_keywords(&mut self, item: Chunks)

Set the value of the keywords field.

Source

pub fn label(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the label field.

Source

pub fn set_label(&mut self, item: Chunks)

Set the value of the label field.

Source

pub fn langid(&self) -> Result<PermissiveType<Language>, RetrievalError>

Get the langid field.

Source

pub fn set_langid(&mut self, item: PermissiveType<Language>)

Set the value of the langid field.

Source

pub fn language(&self) -> Result<Vec<PermissiveType<Language>>, RetrievalError>

Get the language field.

Source

pub fn set_language(&mut self, item: Vec<PermissiveType<Language>>)

Set the value of the language field.

Source

pub fn library(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the library field.

Source

pub fn set_library(&mut self, item: Chunks)

Set the value of the library field.

Source

pub fn main_subtitle(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the mainsubtitle field.

Source

pub fn set_main_subtitle(&mut self, item: Chunks)

Set the value of the mainsubtitle field.

Source

pub fn main_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the maintitle field.

Source

pub fn set_main_title(&mut self, item: Chunks)

Set the value of the maintitle field.

Source

pub fn main_title_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the maintitleaddon field.

Source

pub fn set_main_title_addon(&mut self, item: Chunks)

Set the value of the maintitleaddon field.

Source

pub fn name_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the nameaddon field.

Source

pub fn set_name_addon(&mut self, item: Chunks)

Set the value of the nameaddon field.

Source

pub fn options(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the options field.

Source

pub fn set_options(&mut self, item: Chunks)

Set the value of the options field.

Source

pub fn orig_language(&self) -> Result<Vec<String>, RetrievalError>

Get the origlanguage field.

Source

pub fn set_orig_language(&mut self, item: Vec<String>)

Set the value of the origlanguage field.

Source

pub fn orig_location(&self) -> Result<Vec<Chunks>, RetrievalError>

Get the origlocation field.

Source

pub fn set_orig_location(&mut self, item: Vec<Chunks>)

Set the value of the origlocation field.

Source

pub fn page_total(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the pagetotal field.

Source

pub fn set_page_total(&mut self, item: Chunks)

Set the value of the pagetotal field.

Source

pub fn pagination(&self) -> Result<Pagination, RetrievalError>

Get the pagination field.

Source

pub fn set_pagination(&mut self, item: Pagination)

Set the value of the pagination field.

Source

pub fn part(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the part field.

Source

pub fn set_part(&mut self, item: Chunks)

Set the value of the part field.

Source

pub fn pubstate(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the pubstate field.

Source

pub fn set_pubstate(&mut self, item: Chunks)

Set the value of the pubstate field.

Source

pub fn reprint_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the reprinttitle field.

Source

pub fn set_reprint_title(&mut self, item: Chunks)

Set the value of the reprinttitle field.

Source

pub fn short_author(&self) -> Result<Vec<Person>, RetrievalError>

Get the shortauthor field.

Source

pub fn set_short_author(&mut self, item: Vec<Person>)

Set the value of the shortauthor field.

Source

pub fn short_editor(&self) -> Result<Vec<Person>, RetrievalError>

Get the shorteditor field.

Source

pub fn set_short_editor(&mut self, item: Vec<Person>)

Set the value of the shorteditor field.

Source

pub fn shorthand(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the shorthand field.

Source

pub fn set_shorthand(&mut self, item: Chunks)

Set the value of the shorthand field.

Source

pub fn shorthand_intro(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the shorthandintro field.

Source

pub fn set_shorthand_intro(&mut self, item: Chunks)

Set the value of the shorthandintro field.

Source

pub fn short_journal(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the shortjournal field.

Source

pub fn set_short_journal(&mut self, item: Chunks)

Set the value of the shortjournal field.

Source

pub fn short_series(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the shortseries field.

Source

pub fn set_short_series(&mut self, item: Chunks)

Set the value of the shortseries field.

Source

pub fn short_title(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the shorttitle field.

Source

pub fn set_short_title(&mut self, item: Chunks)

Set the value of the shorttitle field.

Source

pub fn subtitle(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the subtitle field.

Source

pub fn set_subtitle(&mut self, item: Chunks)

Set the value of the subtitle field.

Source

pub fn title_addon(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the titleaddon field.

Source

pub fn set_title_addon(&mut self, item: Chunks)

Set the value of the titleaddon field.

Source

pub fn translator(&self) -> Result<Vec<Person>, RetrievalError>

Get the translator field.

Source

pub fn set_translator(&mut self, item: Vec<Person>)

Set the value of the translator field.

Source

pub fn url(&self) -> Result<String, RetrievalError>

Get the url field.

Source

pub fn set_url(&mut self, item: String)

Set the value of the url field.

Source

pub fn venue(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the venue field.

Source

pub fn set_venue(&mut self, item: Chunks)

Set the value of the venue field.

Source

pub fn version(&self) -> Result<ChunksRef<'_>, RetrievalError>

Get the version field.

Source

pub fn set_version(&mut self, item: Chunks)

Set the value of the version field.

Source

pub fn volumes(&self) -> Result<i64, RetrievalError>

Get the volumes field.

Source

pub fn set_volumes(&mut self, item: i64)

Set the value of the volumes field.

Source

pub fn gender(&self) -> Result<Gender, RetrievalError>

Get the gender field.

Source

pub fn set_gender(&mut self, item: Gender)

Set the value of the gender field.

Trait Implementations§

Source§

impl Clone for Entry

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Entry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Entry

Source§

impl PartialEq for Entry

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Entry

Auto Trait Implementations§

§

impl Freeze for Entry

§

impl RefUnwindSafe for Entry

§

impl Send for Entry

§

impl Sync for Entry

§

impl Unpin for Entry

§

impl UnsafeUnpin for Entry

§

impl UnwindSafe for Entry

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.