pub fn as_type<T: SMBiosStruct<'a>>(&'a self) -> Option<T> {
        if T::STRUCT_TYPE == self.header.struct_type() {
            Some(T::new(self))
        } else {
            None
        }
    }
/// Cast to a given structure
///
/// When this library does not contain a [DefinedStruct] variant
/// matching the SMBiosStruct::STRUCT_TYPE, this function affords a cast to the
/// given type. Such would be the case with OEM structure type T
/// (which implements the [SMBiosStruct] trait).
///
/// TODO: This should panic (not be Option) when the STRUCT_TYPE does not match because
/// this would be a logic error in code, not a runtime error.
///
/// Make this a "try_into"
Cast to a given structure
When this library does not contain a [DefinedStruct] variant
matching the SMBiosStruct::STRUCT_TYPE, this function affords a cast to the
given type. Such would be the case with OEM structure type T
(which implements the [SMBiosStruct] trait).

This should panic (not be Option) when the STRUCT_TYPE does not match because
this would be a logic error in code, not a runtime error.

Make this a "try_into"
Cast to a given structure When this library does not contain a [ DefinedStruct ] variant matching the SMBiosStruct :: STRUCT_TYPE this function affords a cast to the given type . Such would be the case with OEM structure type T ( which implements the [ SMBiosStruct ] trait ) . This should panic ( not be Option ) when the STRUCT_TYPE does not match because this would be a logic error in code not a runtime error . Make this a " try_into "
pub fn as_type<T: SMBiosStruct<'a>>(&'a self) -> Option<T> {
        if T::STRUCT_TYPE == self.header.struct_type() {
            Some(T::new(self))
        } else {
            None
        }
    }
pub fn as_type < T : SMBiosStruct < ' a > > ( & ' a self ) -> Option < T > { if T :: STRUCT_TYPE == self . header . struct_type ( ) { Some ( T :: new ( self ) ) } else { None } }
Cast to a given structure
When this library does not contain a [DefinedStruct] variant
matching the SMBiosStruct::STRUCT_TYPE, this function affords a cast to the
given type.
Cast to a given structure When this library does not contain a [ DefinedStruct ] variant matching the SMBiosStruct :: STRUCT_TYPE this function affords a cast to the given type .
&'a self
&'a self