[−][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 Clone for AmlHandle
[src]
fn clone(&self) -> AmlHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AmlHandle
[src]
impl Debug for AmlHandle
[src]
impl Eq for AmlHandle
[src]
impl Ord for AmlHandle
[src]
fn cmp(&self, other: &AmlHandle) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AmlHandle> for AmlHandle
[src]
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 StructuralEq for AmlHandle
[src]
impl StructuralPartialEq for AmlHandle
[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>,