#[non_exhaustive]pub enum RangePolicy {
Forbid,
Convert,
}Expand description
Policy when source and destination disagree on SignalRange (Full ↔ Narrow).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Forbid
Refuse silent Full↔Narrow range conversion (ConvertError::RangeConversionForbidden).
Convert
Explicitly expand narrow studio swing (16..=235 / 4096..=60160) ↔ full swing (0..=255 / 0..=65535).
Trait Implementations§
Source§impl Clone for RangePolicy
impl Clone for RangePolicy
Source§fn clone(&self) -> RangePolicy
fn clone(&self) -> RangePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RangePolicy
Source§impl Debug for RangePolicy
impl Debug for RangePolicy
Source§impl Default for RangePolicy
impl Default for RangePolicy
Source§fn default() -> RangePolicy
fn default() -> RangePolicy
Returns the “default value” for a type. Read more
impl Eq for RangePolicy
Source§impl Hash for RangePolicy
impl Hash for RangePolicy
Source§impl PartialEq for RangePolicy
impl PartialEq for RangePolicy
impl StructuralPartialEq for RangePolicy
Auto Trait Implementations§
impl Freeze for RangePolicy
impl RefUnwindSafe for RangePolicy
impl Send for RangePolicy
impl Sync for RangePolicy
impl Unpin for RangePolicy
impl UnsafeUnpin for RangePolicy
impl UnwindSafe for RangePolicy
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