pub enum ExternalName {
Symbol(Cow<'static, str>),
User(UserExternalName),
}Expand description
Variants§
Symbol(Cow<'static, str>)
User(UserExternalName)
Implementations§
Source§impl ExternalName
impl ExternalName
Sourcepub const fn user(namespace: u32, index: u32) -> ExternalName
pub const fn user(namespace: u32, index: u32) -> ExternalName
Creates a user-defined external name from namespace and index.
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§fn from(name: &'static str) -> ExternalName
fn from(name: &'static str) -> ExternalName
Converts to this type from the input type.
Source§impl From<String> for ExternalName
impl From<String> for ExternalName
Source§fn from(name: String) -> ExternalName
fn from(name: String) -> ExternalName
Converts to this type from the input type.
Source§impl From<UserExternalName> for ExternalName
impl From<UserExternalName> for ExternalName
Source§fn from(name: UserExternalName) -> ExternalName
fn from(name: UserExternalName) -> ExternalName
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum 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 Forget for ExternalName
impl Freeze for ExternalName
impl Move 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