pub struct Person {
pub name: String,
pub given_name: String,
pub prefix: String,
pub suffix: String,
}
Expand description
An author, editor, or some other person affiliated with a cited work.
When parsed through Person::parse
, the whitespace is trimmed from the
fields.
Fields§
§name: String
The surname / family name / last name.
given_name: String
The given name / first name / forename.
prefix: String
The prefix is placed between given name and name. It could, for example, be a nobiliary particle.
suffix: String
The suffix is placed after the name (e.g., “Jr.”).
Implementations§
source§impl Person
impl Person
sourcepub fn parse(chunks: ChunksRef<'_>) -> Self
pub fn parse(chunks: ChunksRef<'_>) -> Self
Constructs a new person from a chunk vector:
- according to the specs of Nicolas Markey in “Tame the BeaST”, pp. 23-24.
- biblatex extended name format according to the
documentation of biblatex, section 3.4 pp. 80-81,
and section §4.2.3 pp. 164-165.
Support is limited to default
nameparts
: prefix, family, suffix, given.
Trait Implementations§
source§impl Ord for Person
impl Ord for Person
source§impl PartialOrd for Person
impl PartialOrd for Person
impl Eq for Person
impl StructuralPartialEq for Person
Auto Trait Implementations§
impl Freeze for Person
impl RefUnwindSafe for Person
impl Send for Person
impl Sync for Person
impl Unpin for Person
impl UnwindSafe for Person
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)