pub struct DecoherenceState {
pub coherence: f32,
pub time_in_field: f32,
pub active_gamma: f32,
pub current_form: WaveForm,
pub target_form: Option<WaveForm>,
pub recoherence_rate: f32,
pub in_field: bool,
pub active_clip: String,
}Expand description
Tracks the observer’s current decoherence state. This is the density matrix diagonal — how “collapsed” the wave form is.
Fields§
§coherence: f32Current coherence level [0.0, 1.0]. 1.0 = fully coherent (pure particle). 0.0 = fully collapsed (target form).
time_in_field: f32Time spent in the current decoherence field (seconds).
active_gamma: f32Active decoherence rate (from the strongest nearby field).
current_form: WaveFormCurrent wave form (what the observer IS right now).
target_form: Option<WaveForm>Target wave form (what the observer is COLLAPSING INTO, if any).
recoherence_rate: f32Re-coherence rate when leaving a field. Default: gamma * 0.5 (slower return).
in_field: boolWhether the observer is currently inside a decoherence field.
active_clip: StringAnimation clip active during collapse (from the field).
Trait Implementations§
Source§impl Clone for DecoherenceState
impl Clone for DecoherenceState
Source§fn clone(&self) -> DecoherenceState
fn clone(&self) -> DecoherenceState
Returns a duplicate 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 Debug for DecoherenceState
impl Debug for DecoherenceState
Auto Trait Implementations§
impl Freeze for DecoherenceState
impl RefUnwindSafe for DecoherenceState
impl Send for DecoherenceState
impl Sync for DecoherenceState
impl Unpin for DecoherenceState
impl UnsafeUnpin for DecoherenceState
impl UnwindSafe for DecoherenceState
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