pub struct AmlName(/* private fields */);Implementations§
Source§impl AmlName
impl AmlName
pub fn root() -> AmlName
pub fn from_name_seg(seg: NameSeg) -> AmlName
pub fn from_components(components: Vec<NameComponent>) -> AmlName
pub fn as_string(&self) -> String
Sourcepub fn is_normal(&self) -> bool
pub fn is_normal(&self) -> bool
An AML path is normal if it does not contain any prefix elements (“^” characters, when expressed as a string).
pub fn is_absolute(&self) -> bool
Sourcepub fn search_rules_apply(&self) -> bool
pub fn search_rules_apply(&self) -> bool
Special rules apply when searching for certain paths (specifically, those that are made up
of a single name segment). Returns true if those rules apply.
Sourcepub fn normalize(self) -> Result<AmlName, AmlError>
pub fn normalize(self) -> Result<AmlName, AmlError>
Normalize an AML path, resolving prefix chars. Returns AmlError::InvalidNormalizedName if the path
normalizes to an invalid path (e.g. \^_FOO)
Trait Implementations§
impl StructuralPartialEq for AmlName
Auto Trait Implementations§
impl Freeze for AmlName
impl RefUnwindSafe for AmlName
impl Send for AmlName
impl Sync for AmlName
impl Unpin for AmlName
impl UnwindSafe for AmlName
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