Struct pipewire_wrapper::spa::pod::choice::step::PodStepValue
source · pub struct PodStepValue<T> { /* private fields */ }
Implementations§
source§impl<T> PodStepValue<T>
impl<T> PodStepValue<T>
pub fn default(&self) -> &T
pub fn min(&self) -> &T
pub fn max(&self) -> &T
pub fn step(&self) -> &T
pub fn new(default: T, min: T, max: T, step: T) -> Self
pub fn to_alloc_pod<P>(&self) -> Result<AllocPod<PodStepRef<P>>, PodError>where PodStepRef<P>: WritePod + PodRawValue<Value = Self> + PrimitiveValue,
source§impl<T: Clone> PodStepValue<T>
impl<T: Clone> PodStepValue<T>
pub fn from_default(default: T) -> Self
Trait Implementations§
source§impl<T: Clone> Clone for PodStepValue<T>
impl<T: Clone> Clone for PodStepValue<T>
source§fn clone(&self) -> PodStepValue<T>
fn clone(&self) -> PodStepValue<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for PodStepValue<T>
impl<T: Debug> Debug for PodStepValue<T>
source§impl<T: PartialEq> PartialEq<PodStepValue<T>> for PodStepValue<T>
impl<T: PartialEq> PartialEq<PodStepValue<T>> for PodStepValue<T>
source§fn eq(&self, other: &PodStepValue<T>) -> bool
fn eq(&self, other: &PodStepValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for PodStepValue<T>
impl<T> StructuralEq for PodStepValue<T>
impl<T> StructuralPartialEq for PodStepValue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PodStepValue<T>where T: RefUnwindSafe,
impl<T> Send for PodStepValue<T>where T: Send,
impl<T> Sync for PodStepValue<T>where T: Sync,
impl<T> Unpin for PodStepValue<T>where T: Unpin,
impl<T> UnwindSafe for PodStepValue<T>where T: UnwindSafe,
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