pub struct BoxedModulation { /* private fields */ }Expand description
Boxed Modulation.
This provides the ability to wrap any Modulation in a common type.
Implementations§
Source§impl BoxedModulation
impl BoxedModulation
Sourcepub fn new<M: Modulation + 'static>(m: M) -> BoxedModulation
pub fn new<M: Modulation + 'static>(m: M) -> BoxedModulation
Creates a new BoxedModulation.
Trait Implementations§
Source§impl DatagramL<'_> for BoxedModulation
impl DatagramL<'_> for BoxedModulation
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl Inspectable<'_> for BoxedModulation
impl Inspectable<'_> for BoxedModulation
Source§type Result = ModulationInspectionResult
type Result = ModulationInspectionResult
The result of the inspection.
Source§fn inspect(
self,
geometry: &Geometry,
_: &Environment,
filter: &DeviceMask,
) -> Result<InspectionResult<Self::Result>, ModulationError>
fn inspect( self, geometry: &Geometry, _: &Environment, filter: &DeviceMask, ) -> Result<InspectionResult<Self::Result>, ModulationError>
Returns the inspection result.
Source§impl Modulation for BoxedModulation
impl Modulation for BoxedModulation
Source§fn sampling_config(&self) -> SamplingConfig
fn sampling_config(&self) -> SamplingConfig
The sampling configuration.
Auto Trait Implementations§
impl Freeze for BoxedModulation
impl !RefUnwindSafe for BoxedModulation
impl !Send for BoxedModulation
impl !Sync for BoxedModulation
impl Unpin for BoxedModulation
impl !UnwindSafe for BoxedModulation
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<'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, ) -> 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, 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.