pub enum IdentifierOrString<'a> {
Identifier(Identifier<'a>),
String(StringLit<'a>),
}
Expand description
Parses stringifier|static
Variants§
Identifier(Identifier<'a>)
String(StringLit<'a>)
Trait Implementations§
Source§impl<'a> Clone for IdentifierOrString<'a>
impl<'a> Clone for IdentifierOrString<'a>
Source§fn clone(&self) -> IdentifierOrString<'a>
fn clone(&self) -> IdentifierOrString<'a>
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> Debug for IdentifierOrString<'a>
impl<'a> Debug for IdentifierOrString<'a>
Source§impl<'a> From<Identifier<'a>> for IdentifierOrString<'a>
impl<'a> From<Identifier<'a>> for IdentifierOrString<'a>
Source§fn from(x: Identifier<'a>) -> Self
fn from(x: Identifier<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<StringLit<'a>> for IdentifierOrString<'a>
impl<'a> From<StringLit<'a>> for IdentifierOrString<'a>
Source§impl<'a> Hash for IdentifierOrString<'a>
impl<'a> Hash for IdentifierOrString<'a>
Source§impl<'a> Ord for IdentifierOrString<'a>
impl<'a> Ord for IdentifierOrString<'a>
Source§fn cmp(&self, other: &IdentifierOrString<'a>) -> Ordering
fn cmp(&self, other: &IdentifierOrString<'a>) -> Ordering
1.21.0 · 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<'a> Parse<'a> for IdentifierOrString<'a>
impl<'a> Parse<'a> for IdentifierOrString<'a>
Source§impl<'a> PartialEq for IdentifierOrString<'a>
impl<'a> PartialEq for IdentifierOrString<'a>
Source§impl<'a> PartialOrd for IdentifierOrString<'a>
impl<'a> PartialOrd for IdentifierOrString<'a>
impl<'a> Copy for IdentifierOrString<'a>
impl<'a> Eq for IdentifierOrString<'a>
impl<'a> StructuralPartialEq for IdentifierOrString<'a>
Auto Trait Implementations§
impl<'a> Freeze for IdentifierOrString<'a>
impl<'a> RefUnwindSafe for IdentifierOrString<'a>
impl<'a> Send for IdentifierOrString<'a>
impl<'a> Sync for IdentifierOrString<'a>
impl<'a> Unpin for IdentifierOrString<'a>
impl<'a> UnwindSafe for IdentifierOrString<'a>
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