Struct smbioslib::UndefinedStructTable [−][src]
pub struct UndefinedStructTable(_);
Expand description
Undefined Struct Table
A collection of UndefinedStruct items.
Implementations
Iterator of the contained UndefinedStruct items.
pub fn defined_struct_iter<T>(&'a self) -> impl Iterator<Item = T> + 'a where
T: SMBiosStruct<'a>,
[src]
pub fn defined_struct_iter<T>(&'a self) -> impl Iterator<Item = T> + 'a where
T: SMBiosStruct<'a>,
[src]An iterator over the defined type instances within the table.
Tests if every element of the defined struct iterator matches a predicate.
Tests if any element of the defined struct iterator matches a predicate.
Finds the first occurance of the structure
Finds the first occurance of the structure that satisfies a predicate.
Applies function to the defined struct elements and returns the first non-none result.
Creates an iterator of the defined structure which uses a closure to determine if an element should be yielded.
pub fn map<A: 'a, B, F: 'a>(&'a self, f: F) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> B,
[src]
pub fn map<A: 'a, B, F: 'a>(&'a self, f: F) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> B,
[src]Maps the defined struct to another type given by the closure.
pub fn filter_map<A: 'a, B, F: 'a>(
&'a self,
f: F
) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> Option<B>,
[src]
pub fn filter_map<A: 'a, B, F: 'a>(
&'a self,
f: F
) -> impl Iterator<Item = B> + 'a where
A: SMBiosStruct<'a>,
F: FnMut(A) -> Option<B>,
[src]Creates an iterator that both filters and maps from the defined struct iterator.
Finds the structure matching the given handle
To downcast to the defined struct, call .defined_struct() on the result.
Returns all occurances of the structure
Load an UndefinedStructTable by seeking and reading the file offsets.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for UndefinedStructTable
impl Send for UndefinedStructTable
impl Sync for UndefinedStructTable
impl Unpin for UndefinedStructTable
impl UnwindSafe for UndefinedStructTable