[][src]Trait zvariant::Basic

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

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

Trait for basic types.

All basic types are also Type implementers.

Associated Constants

const SIGNATURE_CHAR: char

The type signature, as a character.

const SIGNATURE_STR: &'static str

The type signature, as a string.

const ALIGNMENT: usize

👎 Deprecated since 2.0.2:

Please use the alignment function instead

The required padding alignment.

Loading content...

Required methods

fn alignment(format: EncodingFormat) -> usize

The required padding alignment for the given format.

Loading content...

Implementations on Foreign Types

impl<B: ?Sized, '_> Basic for &'_ B where
    B: Basic
[src]

impl Basic for u8[src]

impl Basic for i8[src]

impl Basic for bool[src]

impl Basic for i16[src]

impl Basic for u16[src]

impl Basic for i32[src]

impl Basic for u32[src]

impl Basic for i64[src]

impl Basic for u64[src]

impl Basic for f32[src]

impl Basic for f64[src]

impl Basic for str[src]

impl Basic for String[src]

impl Basic for char[src]

Loading content...

Implementors

impl Basic for Fd[src]

impl<'a> Basic for ObjectPath<'a>[src]

impl<'a> Basic for Signature<'a>[src]

impl<'a> Basic for Str<'a>[src]

Loading content...