pub enum StringOrIdent {
String(String),
Ident(Ident),
}Variants§
Trait Implementations§
Source§impl Display for StringOrIdent
impl Display for StringOrIdent
Source§impl<'a> From<&'a str> for StringOrIdent
impl<'a> From<&'a str> for StringOrIdent
Source§impl From<Ident> for StringOrIdent
impl From<Ident> for StringOrIdent
Source§impl From<String> for StringOrIdent
impl From<String> for StringOrIdent
Source§impl From<StringOrIdent> for Path
impl From<StringOrIdent> for Path
Source§fn from(value: StringOrIdent) -> Self
fn from(value: StringOrIdent) -> Self
Converts to this type from the input type.
Source§impl FromIterator<StringOrIdent> for Path
impl FromIterator<StringOrIdent> for Path
Source§fn from_iter<T: IntoIterator<Item = StringOrIdent>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = StringOrIdent>>(iter: T) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for StringOrIdent
impl RefUnwindSafe for StringOrIdent
impl !Send for StringOrIdent
impl !Sync for StringOrIdent
impl Unpin for StringOrIdent
impl UnsafeUnpin for StringOrIdent
impl UnwindSafe for StringOrIdent
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