pub enum ExportName {
Named(String),
Default,
}Expand description
Export identifier.
Variants§
Implementations§
Source§impl ExportName
impl ExportName
Sourcepub fn matches_str(&self, s: &str) -> bool
pub fn matches_str(&self, s: &str) -> bool
Compare against a string without allocating (avoids to_string()).
Trait Implementations§
Source§impl Clone for ExportName
impl Clone for ExportName
Source§impl Debug for ExportName
impl Debug for ExportName
Source§impl<'de> Deserialize<'de> for ExportName
impl<'de> Deserialize<'de> for ExportName
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
Source§impl Display for ExportName
impl Display for ExportName
impl Eq for ExportName
Source§impl Hash for ExportName
impl Hash for ExportName
Source§impl PartialEq for ExportName
impl PartialEq for ExportName
Source§impl Serialize for ExportName
impl Serialize for ExportName
impl StructuralPartialEq for ExportName
Auto Trait Implementations§
impl Freeze for ExportName
impl RefUnwindSafe for ExportName
impl Send for ExportName
impl Sync for ExportName
impl Unpin for ExportName
impl UnsafeUnpin for ExportName
impl UnwindSafe for ExportName
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more