pub enum SuperName<'a> {
Name(SimpleName),
Debug,
Reference(Box<ReferenceExpressionOpcode<'a>>),
}
Expand description
A named object, variable, reference expression, or debug object.
Variants§
Trait Implementations§
Source§impl<'a> From<LocalObject> for SuperName<'a>
impl<'a> From<LocalObject> for SuperName<'a>
Source§fn from(l: LocalObject) -> SuperName<'a>
fn from(l: LocalObject) -> SuperName<'a>
Converts to this type from the input type.
Source§impl<'a> From<NameString> for SuperName<'a>
impl<'a> From<NameString> for SuperName<'a>
Source§fn from(n: NameString) -> SuperName<'a>
fn from(n: NameString) -> SuperName<'a>
Converts to this type from the input type.
Source§impl<'a> From<ReferenceExpressionOpcode<'a>> for SuperName<'a>
impl<'a> From<ReferenceExpressionOpcode<'a>> for SuperName<'a>
Source§fn from(r: ReferenceExpressionOpcode<'a>) -> SuperName<'a>
fn from(r: ReferenceExpressionOpcode<'a>) -> SuperName<'a>
Converts to this type from the input type.
Source§impl<'a> From<SimpleName> for SuperName<'a>
impl<'a> From<SimpleName> for SuperName<'a>
Source§fn from(n: SimpleName) -> SuperName<'a>
fn from(n: SimpleName) -> SuperName<'a>
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for SuperName<'a>
Grammar:
impl<'a> Parse<'a> for SuperName<'a>
Grammar:
SuperName := SimpleName | DebugObj | Type6Opcode
Despite the order given in the grammar, we have to try Type6Opcode
before
SimpleName
. Type6Opcode
includes method calls, which would never be reached if
SimpleName
slurped up the method name first.
Source§fn parse<E: AMLParseError<'a>>(
i: ParserState<'a>,
) -> AMLParseResult<'a, Self, E>
fn parse<E: AMLParseError<'a>>( i: ParserState<'a>, ) -> AMLParseResult<'a, Self, E>
Try to parse an object of this type from the given input and state. Read more
impl<'a> Eq for SuperName<'a>
impl<'a> StructuralPartialEq for SuperName<'a>
Auto Trait Implementations§
impl<'a> Freeze for SuperName<'a>
impl<'a> RefUnwindSafe for SuperName<'a>
impl<'a> Send for SuperName<'a>
impl<'a> Sync for SuperName<'a>
impl<'a> Unpin for SuperName<'a>
impl<'a> UnwindSafe for SuperName<'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