# Trait glib::variant::StaticVariantType [−] [src]

    pub trait StaticVariantType {
        fn static_variant_type() -> Cow<'static, VariantTy>;
    }

Returns `VariantType` of `Self`.

## Required Methods

### `fn static_variant_type() -> Cow<'static, VariantTy>`

Returns the `VariantType` corresponding to `Self`.

## Implementations on Foreign Types

### `impl<'a, T: ?Sized + StaticVariantType> StaticVariantType for &'a T`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for u8`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for i16`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for u16`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for i32`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for u32`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for i64`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for u64`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for f64`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for bool`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for String`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

### `impl StaticVariantType for str`
[src]

#### `fn static_variant_type() -> Cow<'static, VariantTy>`
[src]

## Implementors

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
↑
  Move up in search results
↓
  Move down in search results
↹
  Switch tab
⏎
  Go to active search result
+ / -
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)