pub struct ElemValue { /* private fields */ }
Expand description
snd_ctl_elem_value_t wrapper
Implementations§
Source§impl ElemValue
impl ElemValue
pub fn set_id(&mut self, id: &ElemId)
pub fn get_boolean(&self, idx: u32) -> Option<bool>
pub fn set_boolean(&mut self, idx: u32, val: bool) -> Option<()>
pub fn get_integer(&self, idx: u32) -> Option<i32>
pub fn set_integer(&mut self, idx: u32, val: i32) -> Option<()>
pub fn get_integer64(&self, idx: u32) -> Option<i64>
pub fn set_integer64(&mut self, idx: u32, val: i64) -> Option<()>
pub fn get_enumerated(&self, idx: u32) -> Option<u32>
pub fn set_enumerated(&mut self, idx: u32, val: u32) -> Option<()>
pub fn get_byte(&self, idx: u32) -> Option<u8>
pub fn set_byte(&mut self, idx: u32, val: u8) -> Option<()>
pub fn get_bytes(&self) -> Option<&[u8]>
pub fn set_bytes(&mut self, val: &[u8]) -> Option<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ElemValue
impl RefUnwindSafe for ElemValue
impl !Send for ElemValue
impl !Sync for ElemValue
impl Unpin for ElemValue
impl UnwindSafe for ElemValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more