pub enum MemorySizeExtended {
    Megabytes(u32),
    SeeSize,
}
Expand description

Variants

Megabytes(u32)

Size of Memory (MB)

SeeSize

See the size field.

For compatibility with older SMBIOS parsers, memory devices smaller than (32 GB - 1 MB) should be represented using their size in the Size field, leaving the Extended Size field set to 0.

Trait Implementations

Formats the value using the given formatter. Read more

Bit 31 is reserved for future use and must be set to 0. Bits 30:0 represent the size of the memory device in megabytes.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.