pub struct Name<'a> {
pub first: &'a str,
pub middle: Option<&'a str>,
pub last: &'a str,
pub nicknames: &'a [&'a str],
}Expand description
A struct representing names.
Fields§
§first: &'a strFirst name.
middle: Option<&'a str>Middle name.
last: &'a strLast name.
nicknames: &'a [&'a str]A list of nicknames.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Name<'a>
impl<'a> RefUnwindSafe for Name<'a>
impl<'a> Send for Name<'a>
impl<'a> Sync for Name<'a>
impl<'a> Unpin for Name<'a>
impl<'a> UnwindSafe for Name<'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