[−][src]Struct aml::AmlHandle
A handle is used to refer to an AML value without actually borrowing it until you need to access it (this makes borrowing situation much easier as you only have to consider who's borrowing the namespace). They can also be cached to avoid expensive namespace lookups.
Handles are never reused (the handle to a removed object will never be reused to point to a new object). This ensures handles cached by the library consumer will never point to an object they did not originally point to, but also means that, in theory, we can run out of handles on a very-long-running system (we are yet to see if this is a problem, practically).
Trait Implementations
impl Debug for AmlHandle
[src]
impl PartialEq<AmlHandle> for AmlHandle
[src]
impl Eq for AmlHandle
[src]
impl Ord for AmlHandle
[src]
fn cmp(&self, other: &AmlHandle) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl PartialOrd<AmlHandle> for AmlHandle
[src]
fn partial_cmp(&self, other: &AmlHandle) -> Option<Ordering>
[src]
fn lt(&self, other: &AmlHandle) -> bool
[src]
fn le(&self, other: &AmlHandle) -> bool
[src]
fn gt(&self, other: &AmlHandle) -> bool
[src]
fn ge(&self, other: &AmlHandle) -> bool
[src]
impl Copy for AmlHandle
[src]
impl Clone for AmlHandle
[src]
Auto Trait Implementations
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.