Trait zvariant::Basic[][src]

pub trait Basic: Type {
    const SIGNATURE_CHAR: char;
    const SIGNATURE_STR: &'static str;
    const ALIGNMENT: usize;

    fn alignment(format: EncodingFormat) -> usize;
}
Expand description

Trait for basic types.

All basic types are also Type implementers.

Associated Constants

The type signature, as a character.

The type signature, as a string.

👎 Deprecated since 2.0.2:

Please use the alignment function instead

The required padding alignment.

Required methods

The required padding alignment for the given format.

Implementations on Foreign Types

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

👎 Deprecated since 2.0.2:

Please use the alignment function instead

Implementors