pub struct FociSTM<const N: usize, T: FociSTMGenerator<N>, C> {
pub foci: T,
pub config: C,
}
Expand description
Datagram
to produce STM by foci.
Fields§
§foci: T
The sequence of foci.
config: C
The STM configuration.
Implementations§
Source§impl<const N: usize, T: FociSTMGenerator<N>, C> FociSTM<N, T, C>
impl<const N: usize, T: FociSTMGenerator<N>, C> FociSTM<N, T, C>
Source§impl<const N: usize, T: FociSTMGenerator<N>> FociSTM<N, T, Freq<f32>>
impl<const N: usize, T: FociSTMGenerator<N>> FociSTM<N, T, Freq<f32>>
Sourcepub fn into_nearest(self) -> FociSTM<N, T, FreqNearest>
pub fn into_nearest(self) -> FociSTM<N, T, FreqNearest>
Convert to STM with the closest frequency among the possible frequencies.
Source§impl<const N: usize, T: FociSTMGenerator<N>> FociSTM<N, T, Duration>
impl<const N: usize, T: FociSTMGenerator<N>> FociSTM<N, T, Duration>
Sourcepub fn into_nearest(self) -> FociSTM<N, T, PeriodNearest>
pub fn into_nearest(self) -> FociSTM<N, T, PeriodNearest>
Convert to STM with the closest frequency among the possible period.
Source§impl<const N: usize, T: FociSTMGenerator<N>, C: Into<STMConfig> + Copy> FociSTM<N, T, C>
impl<const N: usize, T: FociSTMGenerator<N>, C: Into<STMConfig> + Copy> FociSTM<N, T, C>
Sourcepub fn sampling_config(&self) -> Result<SamplingConfig, AUTDDriverError>
pub fn sampling_config(&self) -> Result<SamplingConfig, AUTDDriverError>
The sampling configuration of the STM.
Trait Implementations§
Source§impl<const N: usize, G: FociSTMGenerator<N> + Debug, C: Into<STMConfig> + Debug> DatagramL<'_> for FociSTM<N, G, C>
impl<const N: usize, G: FociSTMGenerator<N> + Debug, C: Into<STMConfig> + Debug> DatagramL<'_> for FociSTM<N, G, C>
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl<'a, const N: usize, G: FociSTMGenerator<N> + Debug, C: Into<STMConfig> + Copy + Debug> Inspectable<'a> for FociSTM<N, G, C>
impl<'a, const N: usize, G: FociSTMGenerator<N> + Debug, C: Into<STMConfig> + Copy + Debug> Inspectable<'a> for FociSTM<N, G, C>
Source§fn inspect(
self,
geometry: &'a Geometry,
_: &Environment,
filter: &DeviceMask,
_: &FirmwareLimits,
) -> Result<InspectionResult<<Self as Inspectable<'a>>::Result>, <Self as Datagram<'a>>::Error>
fn inspect( self, geometry: &'a Geometry, _: &Environment, filter: &DeviceMask, _: &FirmwareLimits, ) -> Result<InspectionResult<<Self as Inspectable<'a>>::Result>, <Self as Datagram<'a>>::Error>
Returns the inspection result.
Source§impl<const N: usize, T: PartialEq + FociSTMGenerator<N>, C: PartialEq> PartialEq for FociSTM<N, T, C>
impl<const N: usize, T: PartialEq + FociSTMGenerator<N>, C: PartialEq> PartialEq for FociSTM<N, T, C>
impl<const N: usize, T: FociSTMGenerator<N>, C> StructuralPartialEq for FociSTM<N, T, C>
Auto Trait Implementations§
impl<const N: usize, T, C> Freeze for FociSTM<N, T, C>
impl<const N: usize, T, C> RefUnwindSafe for FociSTM<N, T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<const N: usize, T, C> Send for FociSTM<N, T, C>
impl<const N: usize, T, C> Sync for FociSTM<N, T, C>
impl<const N: usize, T, C> Unpin for FociSTM<N, T, C>
impl<const N: usize, T, C> UnwindSafe for FociSTM<N, T, C>where
T: UnwindSafe,
C: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, D> Datagram<'a> for Dwhere
D: DatagramS<'a>,
impl<'a, D> Datagram<'a> for Dwhere
D: DatagramS<'a>,
type G = <D as DatagramS<'a>>::G
type Error = <D as DatagramS<'a>>::Error
fn operation_generator( self, geometry: &'a Geometry, env: &Environment, filter: &DeviceMask, limits: &FirmwareLimits, ) -> Result<<D as Datagram<'a>>::G, <D as Datagram<'a>>::Error>
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl<'a, D> DatagramS<'a> for Dwhere
D: DatagramL<'a>,
impl<'a, D> DatagramS<'a> for Dwhere
D: DatagramL<'a>,
type G = <D as DatagramL<'a>>::G
type Error = <D as DatagramL<'a>>::Error
fn operation_generator_with_segment( self, geometry: &'a Geometry, env: &Environment, filter: &DeviceMask, limits: &FirmwareLimits, segment: Segment, transition_params: TransitionModeParams, ) -> Result<<D as DatagramS<'a>>::G, <D as DatagramS<'a>>::Error>
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.