Struct ValidatedModelMetadata
pub struct ValidatedModelMetadata { /* private fields */ }Expand description
Validated metadata view used by the execution layer.
This type is what handwritten equation builders store after metadata has passed validation. It provides stable lookup helpers from public names to the dense indices used during execution.
Route lookups expose two different indices:
ValidatedModelMetadata::route_declaration_indexis the route position in declaration order.- [
ValidatedModelMetadata::route_index] is the dense execution input index for that route kind.
Implementations§
§impl ValidatedModelMetadata
impl ValidatedModelMetadata
pub fn parameters(&self) -> &[Parameter]
pub fn covariates(&self) -> &[Covariate]
pub fn states(&self) -> &[State]
pub fn routes(&self) -> &[ValidatedRoute]
pub fn route_input_count(&self) -> usize
pub fn route_input_count(&self) -> usize
Get the number of dense execution input slots needed for routes.
This is the maximum of the bolus-route count and infusion-route count.
pub fn outputs(&self) -> &[Output]
pub fn particles(&self) -> Option<usize>
pub fn analytical_kernel(&self) -> Option<AnalyticalKernel>
pub fn parameter_index(&self, name: &str) -> Option<usize>
pub fn covariate_index(&self, name: &str) -> Option<usize>
pub fn state_index(&self, name: &str) -> Option<usize>
pub fn route_declaration_index(&self, name: &str) -> Option<usize>
pub fn route_declaration_index(&self, name: &str) -> Option<usize>
Look up a route by public name and return its declaration-order index.
pub fn parameter(&self, name: &str) -> Option<&Parameter>
pub fn covariate(&self, name: &str) -> Option<&Covariate>
pub fn state(&self, name: &str) -> Option<&State>
pub fn route(&self, name: &str) -> Option<&ValidatedRoute>
pub fn output(&self, name: &str) -> Option<&Output>
Trait Implementations§
§impl Clone for ValidatedModelMetadata
impl Clone for ValidatedModelMetadata
§fn clone(&self) -> ValidatedModelMetadata
fn clone(&self) -> ValidatedModelMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ValidatedModelMetadata
impl Debug for ValidatedModelMetadata
§impl PartialEq for ValidatedModelMetadata
impl PartialEq for ValidatedModelMetadata
§fn eq(&self, other: &ValidatedModelMetadata) -> bool
fn eq(&self, other: &ValidatedModelMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ValidatedModelMetadata
impl StructuralPartialEq for ValidatedModelMetadata
Auto Trait Implementations§
impl Freeze for ValidatedModelMetadata
impl RefUnwindSafe for ValidatedModelMetadata
impl Send for ValidatedModelMetadata
impl Sync for ValidatedModelMetadata
impl Unpin for ValidatedModelMetadata
impl UnsafeUnpin for ValidatedModelMetadata
impl UnwindSafe for ValidatedModelMetadata
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,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
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.