pub struct BoxedGain<'geo> { /* private fields */ }
Expand description
Implementations§
Source§impl<'a> BoxedGain<'a>
impl<'a> BoxedGain<'a>
Sourcepub fn new<C: GainCalculator<'a> + 'static, GG: GainCalculatorGenerator<'a, Calculator = C> + 'static, G: Gain<'a, G = GG> + 'static>(
g: G,
) -> Self
pub fn new<C: GainCalculator<'a> + 'static, GG: GainCalculatorGenerator<'a, Calculator = C> + 'static, G: Gain<'a, G = GG> + 'static>( g: G, ) -> Self
Creates a new BoxedGain
.
Trait Implementations§
Source§impl<'geo> DatagramS<'geo> for BoxedGain<'geo>where
Self: Gain<'geo>,
impl<'geo> DatagramS<'geo> for BoxedGain<'geo>where
Self: Gain<'geo>,
Source§fn option(&self) -> DatagramOption
fn option(&self) -> DatagramOption
Returns the option of the datagram.
Source§impl<'geo> Inspectable<'geo> for BoxedGain<'geo>where
Self: Gain<'geo>,
impl<'geo> Inspectable<'geo> for BoxedGain<'geo>where
Self: Gain<'geo>,
Source§type Result = GainInspectionResult
type Result = GainInspectionResult
The result of the inspection.
Source§fn inspect(
self,
geometry: &'geo Geometry,
env: &Environment,
filter: &DeviceMask,
_: &FirmwareLimits,
) -> Result<InspectionResult<GainInspectionResult>, GainError>
fn inspect( self, geometry: &'geo Geometry, env: &Environment, filter: &DeviceMask, _: &FirmwareLimits, ) -> Result<InspectionResult<GainInspectionResult>, GainError>
Returns the inspection result.
Auto Trait Implementations§
impl<'geo> Freeze for BoxedGain<'geo>
impl<'geo> !RefUnwindSafe for BoxedGain<'geo>
impl<'geo> !Send for BoxedGain<'geo>
impl<'geo> !Sync for BoxedGain<'geo>
impl<'geo> Unpin for BoxedGain<'geo>
impl<'geo> !UnwindSafe for BoxedGain<'geo>
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, 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<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.