Enum elrond::VarSize [] [src]

pub enum VarSize {
    Bits64(u64),
    Bits32(u32),
    Bits16(u16),
}

Sometimes ELF32 vs ELF64 has different lenght values.

Blindly converting everyting to usize or isize could result in a loss of precision on some platforms so here ya go.

Variants

Trait Implementations

impl Copy for VarSize
[src]

impl Clone for VarSize
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for VarSize
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for VarSize
[src]

impl Debug for VarSize
[src]

[src]

Formats the value using the given formatter. Read more

impl Into<usize> for VarSize
[src]

[src]

Performs the conversion.

impl From<u16> for VarSize
[src]

[src]

Performs the conversion.

impl From<u32> for VarSize
[src]

[src]

Performs the conversion.

impl From<u64> for VarSize
[src]

[src]

Performs the conversion.