pub struct FreeformIdent<'a, T> {
pub mean: &'a str,
pub name: &'a str,
/* private fields */
}Expand description
An identifier of a freeform (----) atom containing borrowed mean and name strings.
Fields§
§mean: &'a strThe mean string, typically in reverse domain notation.
Most commonly this is "com.apple.iTunes". See APPLE_ITUNES_MEAN.
name: &'a strThe name string used to identify the freeform atom.
Implementations§
Source§impl FreeformIdent<'static, StaticStr<'static>>
impl FreeformIdent<'static, StaticStr<'static>>
Sourcepub const fn new_static(mean: &'static str, name: &'static str) -> Self
pub const fn new_static(mean: &'static str, name: &'static str) -> Self
Creates a new freeform (----) ident with a static lifetime. Using this type will avoid
allocating the mean and name strings when inserting data into the Userdata struct.
Source§impl<'a> FreeformIdent<'a, BorrowedStr<'a>>
impl<'a> FreeformIdent<'a, BorrowedStr<'a>>
Sourcepub const fn new_borrowed(mean: &'a str, name: &'a str) -> Self
pub const fn new_borrowed(mean: &'a str, name: &'a str) -> Self
Trait Implementations§
Source§impl<'a, T: Clone> Clone for FreeformIdent<'a, T>
impl<'a, T: Clone> Clone for FreeformIdent<'a, T>
Source§fn clone(&self) -> FreeformIdent<'a, T>
fn clone(&self) -> FreeformIdent<'a, T>
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<'a, T: Debug> Debug for FreeformIdent<'a, T>
impl<'a, T: Debug> Debug for FreeformIdent<'a, T>
Source§impl<'a, T: StrLifetime<'a>> Display for FreeformIdent<'a, T>
impl<'a, T: StrLifetime<'a>> Display for FreeformIdent<'a, T>
Source§impl<'a> From<FreeformIdent<'a, BorrowedStr<'a>>> for DataIdent
impl<'a> From<FreeformIdent<'a, BorrowedStr<'a>>> for DataIdent
Source§fn from(value: FreeformIdent<'a, BorrowedStr<'a>>) -> Self
fn from(value: FreeformIdent<'a, BorrowedStr<'a>>) -> Self
Converts to this type from the input type.
Source§impl From<FreeformIdent<'static, StaticStr<'static>>> for DataIdent
impl From<FreeformIdent<'static, StaticStr<'static>>> for DataIdent
Source§fn from(value: FreeformIdentStatic) -> Self
fn from(value: FreeformIdentStatic) -> Self
Converts to this type from the input type.
Source§impl From<FreeformIdent<'static, StaticStr<'static>>> for FreeformIdentBorrowed<'_>
impl From<FreeformIdent<'static, StaticStr<'static>>> for FreeformIdentBorrowed<'_>
Source§fn from(value: FreeformIdentStatic) -> Self
fn from(value: FreeformIdentStatic) -> Self
Converts to this type from the input type.
Source§impl<'a, T: StrLifetime<'a>> Ident for FreeformIdent<'a, T>
impl<'a, T: StrLifetime<'a>> Ident for FreeformIdent<'a, T>
Source§impl<'a, T: StrLifetime<'a>> PartialEq<DataIdent> for FreeformIdent<'a, T>
impl<'a, T: StrLifetime<'a>> PartialEq<DataIdent> for FreeformIdent<'a, T>
Source§impl<'a, T: PartialEq> PartialEq for FreeformIdent<'a, T>
impl<'a, T: PartialEq> PartialEq for FreeformIdent<'a, T>
impl<'a, T: Copy> Copy for FreeformIdent<'a, T>
impl<'a, T: Eq> Eq for FreeformIdent<'a, T>
impl<'a, T> StructuralPartialEq for FreeformIdent<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for FreeformIdent<'a, T>
impl<'a, T> RefUnwindSafe for FreeformIdent<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for FreeformIdent<'a, T>where
T: Send,
impl<'a, T> Sync for FreeformIdent<'a, T>where
T: Sync,
impl<'a, T> Unpin for FreeformIdent<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for FreeformIdent<'a, T>where
T: UnwindSafe,
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