pub enum ExternalName {
Symbol(Cow<'static, str>),
User(UserExternalName),
}Expand description
Variants§
Symbol(Cow<'static, str>)
User(UserExternalName)
Implementations§
Trait Implementations§
Source§impl Clone for ExternalName
impl Clone for ExternalName
Source§fn clone(&self) -> ExternalName
fn clone(&self) -> ExternalName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExternalName
impl Debug for ExternalName
Source§impl Display for ExternalName
impl Display for ExternalName
impl Eq for ExternalName
Source§impl From<&'static str> for ExternalName
impl From<&'static str> for ExternalName
Source§impl From<String> for ExternalName
impl From<String> for ExternalName
Source§impl From<UserExternalName> for ExternalName
impl From<UserExternalName> for ExternalName
Source§fn from(name: UserExternalName) -> Self
fn from(name: UserExternalName) -> Self
Converts to this type from the input type.
Source§impl Hash for ExternalName
impl Hash for ExternalName
Source§impl Ord for ExternalName
impl Ord for ExternalName
Source§fn cmp(&self, other: &ExternalName) -> Ordering
fn cmp(&self, other: &ExternalName) -> Ordering
1.21.0 (const: unstable) · 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 ExternalName
impl PartialEq for ExternalName
Source§impl PartialOrd for ExternalName
impl PartialOrd for ExternalName
impl StructuralPartialEq for ExternalName
Auto Trait Implementations§
impl Freeze for ExternalName
impl RefUnwindSafe for ExternalName
impl Send for ExternalName
impl Sync for ExternalName
impl Unpin for ExternalName
impl UnsafeUnpin for ExternalName
impl UnwindSafe for ExternalName
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