# Struct alsa::ctl::ElemValue [−] [src]

    pub struct ElemValue { /* fields omitted */ }

snd_ctl_elem_value_t wrapper

## Methods

### `impl ElemValue`
[src]

#### `fn get_boolean(&self, idx: u32) -> Option<bool>`

#### `fn set_boolean(&mut self, idx: u32, val: bool) -> Option<()>`

#### `fn get_integer(&self, idx: u32) -> Option<i32>`

#### `fn set_integer(&mut self, idx: u32, val: i32) -> Option<()>`

#### `fn get_integer64(&self, idx: u32) -> Option<i64>`

#### `fn set_integer64(&mut self, idx: u32, val: i64) -> Option<()>`

#### `fn get_enumerated(&self, idx: u32) -> Option<u32>`

#### `fn set_enumerated(&mut self, idx: u32, val: u32) -> Option<()>`

#### `fn get_byte(&self, idx: u32) -> Option<u8>`

#### `fn set_byte(&mut self, idx: u32, val: u8) -> Option<()>`

#### `fn get_bytes(&self) -> Option<&[u8]>`

#### `fn set_bytes(&mut self, val: &[u8]) -> Option<()>`

#### `fn new(t: ElemType) -> Result<ElemValue>`

Creates a new ElemValue.

## Trait Implementations

### `impl Drop for ElemValue`
[src]

#### `fn drop(&mut self)`

A method called when the value goes out of scope. Read more

### `impl Debug for ElemValue`
[src]

#### `fn fmt(&self, f: &mut Formatter) -> Result`

Formats the value using the given formatter.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  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`)