[−][src]Enum aml::value::AmlValue
Variants
String(String)
Fields of OpRegion
Fields of Field
Fields of Method
flags: MethodFlags
code: Vec<u8>
Fields of Buffer
bytes: Vec<u8>
size: u64
Methods
impl AmlValue
[src]
pub fn type_of(&self) -> AmlType
[src]
Returns the AML type of this value. For Name
, this returns the type of the inner value.
pub fn as_bool(&self) -> Result<bool, AmlError>
[src]
pub fn as_integer(&self) -> Result<u64, AmlError>
[src]
pub fn as_type(&self, desired_type: AmlType) -> Result<AmlValue, AmlError>
[src]
Convert this value to a value of the same data, but with the given AML type, if possible, by converting the implicit conversions described in §19.3.5 of the spec.
The implicit conversions applied are:
Buffer
from: Integer
, String
, Debug
BufferField
from: Integer
, Buffer
, String
, Debug
DdbHandle
from: Integer
, Debug
FieldUnit
from: Integer
,Buffer
, String
, Debug
Integer
from: Buffer
, BufferField
, DdbHandle
, FieldUnit
, String
, Debug
Package
from: Debug
String
from: Integer
, Buffer
, Debug
Trait Implementations
impl Clone for AmlValue
[src]
fn clone(&self) -> AmlValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AmlValue
[src]
impl Eq for AmlValue
[src]
impl PartialEq<AmlValue> for AmlValue
[src]
impl StructuralEq for AmlValue
[src]
impl StructuralPartialEq for AmlValue
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,