[][src]Struct aml::AmlHandle

pub struct 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 max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialOrd<AmlHandle> for AmlHandle[src]

impl Copy for AmlHandle[src]

impl Clone for AmlHandle[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for AmlHandle

impl Sync for AmlHandle

impl Send for AmlHandle

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.