Lines Matching +full:- +full:t
2 // Use of this source code is governed by a BSD-style license that can be
5 //! This module provides different implementations of `Elem` that use the alsa-lib control interface
27 /// The Result type of cros-alsa::elem.
28 pub type Result<T> = std::result::Result<T, Error>;
32 /// Possible errors that can occur in cros-alsa::elem.
45 fn from(err: control_primitive::Error) -> Error { in from()
51 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
62 // The `$t:ident $($ts:ident)*` part matches and removes one token at a time. It's used for
65 {$n:expr, $type:ty, $t:ident $($ts:ident)*} => {
67 type T = Self;
73 fn load(handle: &mut Ctl, id: &ElemId) -> Result<Self::T>
95 /// * `changed` - false on success.
96 /// - true on success when value was changed.
101 fn save(handle: &mut Ctl, id: &ElemId, val: Self::T) -> Result<bool> {
118 fn elem_type() -> ElemType {
123 fn size() -> usize {
127 impl_for_array!{($n - 1), $type, $($ts)*}
134 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
135 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
136 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
137 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
142 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
143 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
144 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
145 T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
149 type T = bool; typedef
151 unsafe fn elem_value_get(elem: &ElemValue, idx: usize) -> bool { in elem_value_get()
159 fn elem_type() -> ElemType { in elem_type()
165 type T = i32; typedef
167 unsafe fn elem_value_get(elem: &ElemValue, idx: usize) -> i32 { in elem_value_get()
175 fn elem_type() -> ElemType { in elem_type()
183 type T; typedef
185 unsafe fn elem_value_get(value: &ElemValue, idx: usize) -> Self::T; in elem_value_get() argument
187 unsafe fn elem_value_set(value: &mut ElemValue, id: usize, val: Self::T); in elem_value_set() argument
189 fn elem_type() -> ElemType; in elem_type()
195 type T; typedef
197 fn load(handle: &mut Ctl, id: &ElemId) -> Result<Self::T>; in load() argument
199 fn save(handle: &mut Ctl, id: &ElemId, val: Self::T) -> Result<bool>; in save()
201 fn elem_type() -> ElemType; in elem_type()
203 fn size() -> usize; in size()