pub struct BiosAttributeRef<'a> { /* private fields */ }Expand description
Reference to a BIOS attribute.
Implementations§
Source§impl<'a> BiosAttributeRef<'a>
impl<'a> BiosAttributeRef<'a>
Sourcepub const fn str_value(&self) -> Option<&str>
pub const fn str_value(&self) -> Option<&str>
Returns string value of the attribute if attribute is string.
Sourcepub const fn bool_value(&self) -> Option<bool>
pub const fn bool_value(&self) -> Option<bool>
Returns boolean value of the attribute if attribute is bool.
Sourcepub const fn integer_value(&self) -> Option<i64>
pub const fn integer_value(&self) -> Option<i64>
Returns integer value of the attribute if attribute is integer.
Sourcepub const fn decimal_value(&self) -> Option<f64>
pub const fn decimal_value(&self) -> Option<f64>
Returns decimal value of the attribute if attribute is decimal.
Auto Trait Implementations§
impl<'a> Freeze for BiosAttributeRef<'a>
impl<'a> RefUnwindSafe for BiosAttributeRef<'a>
impl<'a> Send for BiosAttributeRef<'a>
impl<'a> Sync for BiosAttributeRef<'a>
impl<'a> Unpin for BiosAttributeRef<'a>
impl<'a> UnsafeUnpin for BiosAttributeRef<'a>
impl<'a> UnwindSafe for BiosAttributeRef<'a>
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