pub struct Pan(/* private fields */);Expand description
Stereo panning, -1.0 (full left) ..= 1.0 (full right).
Implementations§
Source§impl Pan
impl Pan
Sourcepub fn new(value: f32) -> Result<Self, OutOfRange>
pub fn new(value: f32) -> Result<Self, OutOfRange>
Constructs a new value, validating the range.
§Errors
Returns OutOfRange if value is NaN or outside the
valid range.
Sourcepub const fn new_unchecked(value: f32) -> Self
pub const fn new_unchecked(value: f32) -> Self
Constructs without validation.
The caller must ensure value lies within the valid range.
Trait Implementations§
impl Copy for Pan
Source§impl PartialOrd for Pan
impl PartialOrd for Pan
impl StructuralPartialEq for Pan
Auto Trait Implementations§
impl Freeze for Pan
impl RefUnwindSafe for Pan
impl Send for Pan
impl Sync for Pan
impl Unpin for Pan
impl UnsafeUnpin for Pan
impl UnwindSafe for Pan
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