#[non_exhaustive]pub struct Name<'m> {
pub nfc: Cow<'m, str>,
pub spelling: &'m str,
}Expand description
A name used by a message: its NFC form (what comparisons and the manifest use) and its spelling as written (first occurrence in source order).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nfc: Cow<'m, str>The name in Unicode Normalization Form C.
spelling: &'m strThe name as first written in the message.
Trait Implementations§
impl<'m> Eq for Name<'m>
impl<'m> StructuralPartialEq for Name<'m>
Auto Trait Implementations§
impl<'m> Freeze for Name<'m>
impl<'m> RefUnwindSafe for Name<'m>
impl<'m> Send for Name<'m>
impl<'m> Sync for Name<'m>
impl<'m> Unpin for Name<'m>
impl<'m> UnsafeUnpin for Name<'m>
impl<'m> UnwindSafe for Name<'m>
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