pub enum DataRefObject<'a> {
Data(DataObject<'a>),
ObjectReference(u64),
DefinitionBlockHandle(u64),
}
Variants§
Trait Implementations§
Source§impl<'a> Clone for DataRefObject<'a>
impl<'a> Clone for DataRefObject<'a>
Source§fn clone(&self) -> DataRefObject<'a>
fn clone(&self) -> DataRefObject<'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 DataRefObject<'a>
impl<'a> Debug for DataRefObject<'a>
Source§impl<'a> From<ComputationalData<'a>> for DataRefObject<'a>
impl<'a> From<ComputationalData<'a>> for DataRefObject<'a>
Source§fn from(d: ComputationalData<'a>) -> DataRefObject<'a>
fn from(d: ComputationalData<'a>) -> DataRefObject<'a>
Converts to this type from the input type.
Source§impl<'a> From<DataObject<'a>> for DataRefObject<'a>
impl<'a> From<DataObject<'a>> for DataRefObject<'a>
Source§fn from(d: DataObject<'a>) -> DataRefObject<'a>
fn from(d: DataObject<'a>) -> DataRefObject<'a>
Converts to this type from the input type.
Source§impl<'a> From<DataRefObject<'a>> for PackageElement<'a>
impl<'a> From<DataRefObject<'a>> for PackageElement<'a>
Source§fn from(r: DataRefObject<'a>) -> PackageElement<'a>
fn from(r: DataRefObject<'a>) -> PackageElement<'a>
Converts to this type from the input type.
Source§impl<'a> From<Package<'a>> for DataRefObject<'a>
impl<'a> From<Package<'a>> for DataRefObject<'a>
Source§fn from(p: Package<'a>) -> DataRefObject<'a>
fn from(p: Package<'a>) -> DataRefObject<'a>
Converts to this type from the input type.
Source§impl<'a> From<VarPackage<'a>> for DataRefObject<'a>
impl<'a> From<VarPackage<'a>> for DataRefObject<'a>
Source§fn from(p: VarPackage<'a>) -> DataRefObject<'a>
fn from(p: VarPackage<'a>) -> DataRefObject<'a>
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for DataRefObject<'a>
Grammar:
impl<'a> Parse<'a> for DataRefObject<'a>
Grammar:
DataRefObject := DataObject | ??ObjectReference | ??DDBHandle
From ASL grammar (§19.2.4):
DDBHandle := Integer
ObjectReference := Integer
However, it is unclear how these two types would be encoded in AML and how they
would be distinguished from each other, or from the integral constants under
ComputationalData
. Consequently, they aren’t implemented
TODO: Figure out why this production exists, and get rid of it if it is no
different than DataObject
.
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
Source§impl<'a> PartialEq for DataRefObject<'a>
impl<'a> PartialEq for DataRefObject<'a>
impl<'a> Eq for DataRefObject<'a>
impl<'a> StructuralPartialEq for DataRefObject<'a>
Auto Trait Implementations§
impl<'a> Freeze for DataRefObject<'a>
impl<'a> RefUnwindSafe for DataRefObject<'a>
impl<'a> Send for DataRefObject<'a>
impl<'a> Sync for DataRefObject<'a>
impl<'a> Unpin for DataRefObject<'a>
impl<'a> UnwindSafe for DataRefObject<'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