# Trait glib::value::SetValueOptional [−] [src]

    pub trait SetValueOptional: SetValue {
        unsafe fn set_value_optional(_: &mut Value, _: Option<&Self>);
    }

Sets a value.

Only implemented for types that support a `None` value.

## Required Methods

### `unsafe fn set_value_optional(_: &mut Value, _: Option<&Self>)`

## Implementations on Foreign Types

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

#### `unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)`
[src]

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

#### `unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)`
[src]

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

#### `unsafe fn set_value_optional(value: &mut Value, this: Option<&Self>)`
[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`)