Enum koto_parser::MapKey
source · pub enum MapKey {
Id(ConstantIndex),
Str(AstString),
Meta(MetaKeyId, Option<ConstantIndex>),
}
Expand description
A map key definition
Variants§
Id(ConstantIndex)
An identifier
Str(AstString)
A string
Meta(MetaKeyId, Option<ConstantIndex>)
A meta key
Some meta keys require an additional identifier, e.g. @test test_name
Trait Implementations§
source§impl PartialEq for MapKey
impl PartialEq for MapKey
impl Eq for MapKey
impl StructuralPartialEq for MapKey
Auto Trait Implementations§
impl Freeze for MapKey
impl RefUnwindSafe for MapKey
impl Send for MapKey
impl Sync for MapKey
impl Unpin for MapKey
impl UnwindSafe for MapKey
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