[−][src]Struct dmidecode::RawStructure
The raw SMBIOS structure information for structures that are not handled by this crate, such as Oem structures.
Fields
version: SmbiosVersioninfo: InfoTypehandle: u16data: &'buffer [u8]Implementations
impl<'buffer> RawStructure<'buffer>[src]
pub fn find_string(
&self,
idx: u8
) -> Result<&'buffer str, MalformedStructureError>[src]
&self,
idx: u8
) -> Result<&'buffer str, MalformedStructureError>
Find a string in the strings table by the string index. If the string index is 0, the empty string is returned. Otherwise, the string corresponding to that string index in the strings table is returned.
Errors
Returns a MalformedStructureError::InvalidStringIndex if the index is outside of the strings table.
Trait Implementations
impl<'buffer> Clone for RawStructure<'buffer>[src]
fn clone(&self) -> RawStructure<'buffer>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'buffer> Debug for RawStructure<'buffer>[src]
impl<'buffer> Eq for RawStructure<'buffer>[src]
impl<'buffer> Hash for RawStructure<'buffer>[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<'buffer> PartialEq<RawStructure<'buffer>> for RawStructure<'buffer>[src]
fn eq(&self, other: &RawStructure<'buffer>) -> bool[src]
fn ne(&self, other: &RawStructure<'buffer>) -> bool[src]
impl<'buffer> StructuralEq for RawStructure<'buffer>[src]
impl<'buffer> StructuralPartialEq for RawStructure<'buffer>[src]
Auto Trait Implementations
impl<'buffer> RefUnwindSafe for RawStructure<'buffer>
impl<'buffer> Send for RawStructure<'buffer>
impl<'buffer> Sync for RawStructure<'buffer>
impl<'buffer> Unpin for RawStructure<'buffer>
impl<'buffer> UnwindSafe for RawStructure<'buffer>
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>,