Enum icu::experimental::personnames::api::NameFieldKind
source · pub enum NameFieldKind {
Title,
Given,
Given2,
Surname,
Surname2,
Generation,
Credentials,
}
Variants§
Trait Implementations§
source§impl Clone for NameFieldKind
impl Clone for NameFieldKind
source§fn clone(&self) -> NameFieldKind
fn clone(&self) -> NameFieldKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NameFieldKind
impl Debug for NameFieldKind
source§impl FromStr for NameFieldKind
impl FromStr for NameFieldKind
source§type Err = PersonNamesFormatterError
type Err = PersonNamesFormatterError
The associated error which can be returned from parsing.
source§fn from_str(
value: &str,
) -> Result<NameFieldKind, <NameFieldKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<NameFieldKind, <NameFieldKind as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moresource§impl Hash for NameFieldKind
impl Hash for NameFieldKind
source§impl Ord for NameFieldKind
impl Ord for NameFieldKind
source§fn cmp(&self, other: &NameFieldKind) -> Ordering
fn cmp(&self, other: &NameFieldKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for NameFieldKind
impl PartialEq for NameFieldKind
source§impl PartialOrd for NameFieldKind
impl PartialOrd for NameFieldKind
impl Copy for NameFieldKind
impl Eq for NameFieldKind
impl StructuralPartialEq for NameFieldKind
Auto Trait Implementations§
impl Freeze for NameFieldKind
impl RefUnwindSafe for NameFieldKind
impl Send for NameFieldKind
impl Sync for NameFieldKind
impl Unpin for NameFieldKind
impl UnwindSafe for NameFieldKind
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
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more