AUDIO
Source snapshot · 11 November 2026

API reference / ravet_native_dsp::ScopedDenormalMode

Struct ScopedDenormalMode 

pub struct ScopedDenormalMode { /* private fields */ }
Expand description

Thread-bound RAII scope restoring exact prior control AND sticky status.

Scope-created cumulative exception flags are isolated, not merged into the caller’s observations. Nested scopes restore lexically. Other code on this thread inside the scope observes the selected environment. There is no heap, lock or I/O; x86_64 entry includes up to two bounded 512-byte FXSAVE capability reads when the control changes. Forget, abort and foreign longjmp can prevent restoration. This type cannot be transferred or shared between threads.

fn send<T: Send>() {}
send::<ravet_native_dsp::ScopedDenormalMode>();
fn sync<T: Sync>() {}
sync::<ravet_native_dsp::ScopedDenormalMode>();

Implementations§

§

impl ScopedDenormalMode

pub fn enter(mode: DenormalMode) -> Result<Self, DenormalError>

Refuse unsupported actual environments before changing state. A rejected write/read-back restores the complete prior state before returning Err.

pub fn prior_state(&self) -> FloatState

Trait Implementations§

§

impl Drop for ScopedDenormalMode

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

fn pin_drop(self: Pin<&mut Self>)

Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.