Skip to main content

SyncableGenerator

Trait SyncableGenerator 

Source
pub trait SyncableGenerator<T: Transcendental>: Generator<T> {
    // Required methods
    fn sync(&mut self, reset: bool);
    fn periods(&self) -> u32;
}
Expand description

Generator with synchronization

Allows synchronizing multiple generators by phase or clock signal.

Required Methods§

Source

fn sync(&mut self, reset: bool)

Sync with external clock signal

§Arguments
  • reset - if true, reset phase to 0
Source

fn periods(&self) -> u32

Get number of periods since last reset

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§