Struct soco::model::data_center::loads::LoadProfile
source · [−]pub struct LoadProfile(_);
Expand description
Encapsulates the load of $e$ types.
Implementations
sourceimpl LoadProfile
impl LoadProfile
sourcepub fn raw(l: Vec<f64>) -> LoadProfile
pub fn raw(l: Vec<f64>) -> LoadProfile
Creates a new load profile from a raw vector.
sourcepub fn new(l: Vec<N64>) -> LoadProfile
pub fn new(l: Vec<N64>) -> LoadProfile
Creates a new load profile from a vector.
sourcepub fn single(l: N64) -> LoadProfile
pub fn single(l: N64) -> LoadProfile
Creates a load profile with a single load type.
sourcepub fn into_predicted_load_profile(self) -> PredictedLoadProfile
pub fn into_predicted_load_profile(self) -> PredictedLoadProfile
Converts load profile to a predicted load profile.
Trait Implementations
sourceimpl Clone for LoadProfile
impl Clone for LoadProfile
sourcefn clone(&self) -> LoadProfile
fn clone(&self) -> LoadProfile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LoadProfile
impl Debug for LoadProfile
sourceimpl<'a> Deserialize<'a> for LoadProfile
impl<'a> Deserialize<'a> for LoadProfile
sourcefn deserialize<D: Deserializer<'a>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'a>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Div<NoisyFloat<f64, NumChecker>> for LoadProfile
impl Div<NoisyFloat<f64, NumChecker>> for LoadProfile
sourceimpl FromIterator<NoisyFloat<f64, NumChecker>> for LoadProfile
impl FromIterator<NoisyFloat<f64, NumChecker>> for LoadProfile
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = N64>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = N64>,
Creates a value from an iterator. Read more
sourceimpl FromParallelIterator<NoisyFloat<f64, NumChecker>> for LoadProfile
impl FromParallelIterator<NoisyFloat<f64, NumChecker>> for LoadProfile
sourcefn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = N64>,
fn from_par_iter<I>(iter: I) -> Self where
I: IntoParallelIterator<Item = N64>,
Creates an instance of the collection from the parallel iterator par_iter
. Read more
sourceimpl<'a> FromPyObject<'a> for LoadProfile
impl<'a> FromPyObject<'a> for LoadProfile
sourceimpl Index<usize> for LoadProfile
impl Index<usize> for LoadProfile
sourceimpl<'a> IntoParallelIterator for &'a LoadProfile
impl<'a> IntoParallelIterator for &'a LoadProfile
sourceimpl IntoParallelIterator for LoadProfile
impl IntoParallelIterator for LoadProfile
sourceimpl IntoPy<Py<PyAny>> for LoadProfile
impl IntoPy<Py<PyAny>> for LoadProfile
sourceimpl Mul<Vec<NoisyFloat<f64, NumChecker>, Global>> for LoadProfile
impl Mul<Vec<NoisyFloat<f64, NumChecker>, Global>> for LoadProfile
sourceimpl PartialEq<LoadProfile> for LoadProfile
impl PartialEq<LoadProfile> for LoadProfile
sourcefn eq(&self, other: &LoadProfile) -> bool
fn eq(&self, other: &LoadProfile) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LoadProfile) -> bool
fn ne(&self, other: &LoadProfile) -> bool
This method tests for !=
.
sourceimpl Serialize for LoadProfile
impl Serialize for LoadProfile
sourceimpl VecWrapper for LoadProfile
impl VecWrapper for LoadProfile
impl StructuralPartialEq for LoadProfile
Auto Trait Implementations
impl RefUnwindSafe for LoadProfile
impl Send for LoadProfile
impl Sync for LoadProfile
impl Unpin for LoadProfile
impl UnwindSafe for LoadProfile
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