pub struct Config<T>(_);
Expand description
Assigns each dimension $k \in [d]$ a unique value.
Implementations
sourceimpl<'a, T> Config<T> where
T: Value<'a>,
impl<'a, T> Config<T> where
T: Value<'a>,
Trait Implementations
sourceimpl<'a, T, U> CastableConfig<T> for Config<U> where
T: Value<'a>,
U: Value<'a>,
impl<'a, T, U> CastableConfig<T> for Config<U> where
T: Value<'a>,
U: Value<'a>,
sourceimpl<'a, T> DecisionSpace<'_, Config<T>> for Vec<T> where
T: Value<'a>,
impl<'a, T> DecisionSpace<'_, Config<T>> for Vec<T> where
T: Value<'a>,
sourceimpl<'de, T> Deserialize<'de> for Config<T> where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Config<T> where
T: Deserialize<'de>,
sourcefn 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
sourceimpl<'a, T> DiscretizableConfig for Config<T> where
T: Value<'a>,
impl<'a, T> DiscretizableConfig for Config<T> where
T: Value<'a>,
sourcefn ceil(&self) -> IntegralConfig
fn ceil(&self) -> IntegralConfig
Ceil all elements of a config.
sourcefn floor(&self) -> IntegralConfig
fn floor(&self) -> IntegralConfig
Floor all elements of a config.
sourceimpl<'a, T> FromIterator<Config<T>> for Schedule<T> where
T: Value<'a>,
impl<'a, T> FromIterator<Config<T>> for Schedule<T> where
T: Value<'a>,
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Config<T>>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Config<T>>,
Creates a value from an iterator. Read more
sourceimpl<'a, T> FromIterator<T> for Config<T> where
T: Value<'a>,
impl<'a, T> FromIterator<T> for Config<T> where
T: Value<'a>,
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = T>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = T>,
Creates a value from an iterator. Read more
sourceimpl<'a, T> FromParallelIterator<Config<T>> for Schedule<T> where
T: Value<'a>,
impl<'a, T> FromParallelIterator<Config<T>> for Schedule<T> where
T: Value<'a>,
sourcefn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = Config<T>>,
fn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = Config<T>>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
sourceimpl<'a, T> FromParallelIterator<T> for Config<T> where
T: Value<'a>,
impl<'a, T> FromParallelIterator<T> for Config<T> where
T: Value<'a>,
sourcefn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = T>,
fn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = T>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
sourceimpl<'a, T> FromPyObject<'a> for Config<T> where
T: Value<'a> + FromPyObject<'a>,
impl<'a, T> FromPyObject<'a> for Config<T> where
T: Value<'a> + FromPyObject<'a>,
sourceimpl<'data, T> IntoParallelIterator for &'data Config<T> where
T: Value<'data>,
impl<'data, T> IntoParallelIterator for &'data Config<T> where
T: Value<'data>,
sourceimpl<'a, T> IntoParallelIterator for Config<T> where
T: Value<'a>,
impl<'a, T> IntoParallelIterator for Config<T> where
T: Value<'a>,
sourceimpl<'a> Mul<Config<f64>> for f64
impl<'a> Mul<Config<f64>> for f64
sourcefn mul(self, other: FractionalConfig) -> Self::Output
fn mul(self, other: FractionalConfig) -> Self::Output
Scales config with scalar.
type Output = FractionalConfig
type Output = FractionalConfig
The resulting type after applying the *
operator.
sourceimpl<'a, T> VecWrapper for Config<T> where
T: Value<'a>,
impl<'a, T> VecWrapper for Config<T> where
T: Value<'a>,
impl<T: Eq> Eq for Config<T>
impl<T> StructuralEq for Config<T>
impl<T> StructuralPartialEq for Config<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Config<T> where
T: RefUnwindSafe,
impl<T> Send for Config<T> where
T: Send,
impl<T> Sync for Config<T> where
T: Sync,
impl<T> Unpin for Config<T> where
T: Unpin,
impl<T> UnwindSafe for Config<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'data, I> IntoParallelRefIterator<'data> for I where
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
impl<'data, I> IntoParallelRefIterator<'data> for I where
I: 'data + ?Sized,
&'data I: IntoParallelIterator,
type Iter = <&'data I as IntoParallelIterator>::Iter
type Iter = <&'data I as IntoParallelIterator>::Iter
The type of the parallel iterator that will be returned.
type Item = <&'data I as IntoParallelIterator>::Item
type Item = <&'data I as IntoParallelIterator>::Item
The type of item that the parallel iterator will produce.
This will typically be an &'data T
reference type. Read more
sourcefn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
fn par_iter(&'data self) -> <I as IntoParallelRefIterator<'data>>::Iter
Converts self
into a parallel iterator. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
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 more
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).
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.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
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 more
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).
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.
fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more