pub struct SpectralPulse {
pub node: NodeId,
pub amplitude: FiniteF32,
pub phase: FiniteF32,
pub frequency: PosF32,
pub hops: u8,
pub prev_node: NodeId,
pub recent_path: [NodeId; 3],
}Expand description
A spectral pulse carrying amplitude, phase, and frequency. 48 bytes — fits in one cache line. Replaces: xlr_v2.py SpectralPulse dataclass
Fields§
§node: NodeId§amplitude: FiniteF32§phase: FiniteF32Phase in [0, 2*pi).
frequency: PosF32Frequency: F_HOT for seeds, F_COLD for anti-seeds.
hops: u8Hops from origin (for immunity check).
prev_node: NodeIdPrevious node (for path tracking, replaces unbounded Vec — FM-RES-007).
recent_path: [NodeId; 3]Recent path (last 3 nodes) — bounded, replaces full path Vec.
Trait Implementations§
Source§impl Clone for SpectralPulse
impl Clone for SpectralPulse
Source§fn clone(&self) -> SpectralPulse
fn clone(&self) -> SpectralPulse
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 SpectralPulse
impl Debug for SpectralPulse
impl Copy for SpectralPulse
Auto Trait Implementations§
impl Freeze for SpectralPulse
impl RefUnwindSafe for SpectralPulse
impl Send for SpectralPulse
impl Sync for SpectralPulse
impl Unpin for SpectralPulse
impl UnsafeUnpin for SpectralPulse
impl UnwindSafe for SpectralPulse
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