pub struct SpectralCollector { /* private fields */ }Implementations§
Source§impl SpectralCollector
impl SpectralCollector
pub fn new(max_history: usize) -> Self
pub fn try_new(max_history: usize) -> Result<Self, SpectralError>
pub fn record(&mut self, diagnostics: SpectralDiagnostics)
pub fn latest(&self) -> Option<&SpectralDiagnostics>
pub fn history(&self) -> &[SpectralDiagnostics]
pub fn beta_evolution(&self, layer: usize) -> Vec<f32>
pub fn regime_transitions(&self, layer: usize) -> Vec<(usize, DeltaRegime)>
Trait Implementations§
Source§impl Clone for SpectralCollector
impl Clone for SpectralCollector
Source§fn clone(&self) -> SpectralCollector
fn clone(&self) -> SpectralCollector
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 SpectralCollector
impl Debug for SpectralCollector
Source§impl<'de> Deserialize<'de> for SpectralCollector
impl<'de> Deserialize<'de> for SpectralCollector
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpectralCollector
impl RefUnwindSafe for SpectralCollector
impl Send for SpectralCollector
impl Sync for SpectralCollector
impl Unpin for SpectralCollector
impl UnsafeUnpin for SpectralCollector
impl UnwindSafe for SpectralCollector
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