#[non_exhaustive]pub enum NameShape {
PersonName,
}Expand description
Closed enum for the shape of token sequences anchored_match extracts.
v0.6 ships a single PersonName variant. Future variants
(e.g. Organization, Address, LegalEntity) must justify
why they aren’t a locale-bucket lookup before being added here.
Adding variants without that justification regresses the
principle drawer session-2026-04-25-no-codified-domain-concerns
(see also lower_email_header_pattern_template in pre-v0.4.1 history).
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.
PersonName
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NameShape
impl<'de> Deserialize<'de> for NameShape
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NameShape
impl StructuralPartialEq for NameShape
Auto Trait Implementations§
impl Freeze for NameShape
impl RefUnwindSafe for NameShape
impl Send for NameShape
impl Sync for NameShape
impl Unpin for NameShape
impl UnsafeUnpin for NameShape
impl UnwindSafe for NameShape
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.