pub struct ConfigRom<'a> {
pub bus_info: &'a [u8],
pub root: Vec<Entry<'a>>,
}Expand description
The structure to express content of configuration ROM in IEEE 1212.
The structure implements std::convert::TryFrom<&u8> to parse raw data of configuration ROM, aligned to big-endian. The structure refers to content of the raw data, thus has the same lifetime of the raw data.
Fields§
§bus_info: &'a [u8]The content of bus information block.
root: Vec<Entry<'a>>The directory entries in root directory block.
Trait Implementations§
impl<'a> Eq for ConfigRom<'a>
impl<'a> StructuralPartialEq for ConfigRom<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConfigRom<'a>
impl<'a> RefUnwindSafe for ConfigRom<'a>
impl<'a> Send for ConfigRom<'a>
impl<'a> Sync for ConfigRom<'a>
impl<'a> Unpin for ConfigRom<'a>
impl<'a> UnwindSafe for ConfigRom<'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