pub struct StatResult(/* private fields */);Expand description
An immutable result of one scientific preparation, with real field domains.
Implementations§
Source§impl StatResult
impl StatResult
Sourcepub fn fields(&self) -> &[StatFieldInfo]
pub fn fields(&self) -> &[StatFieldInfo]
Actual output field descriptions, in producer order.
Sourcepub fn domains(&self) -> &[DataDomainInfo]
pub fn domains(&self) -> &[DataDomainInfo]
Actual scientific domains; no domain is inferred from equal lengths.
Sourcepub fn values(&self, field: impl Into<StatField>) -> Result<&DataPayload>
pub fn values(&self, field: impl Into<StatField>) -> Result<&DataPayload>
Read the actual owning native field, without a scientific calculation.
Sourcepub fn get_members(
&self,
field: impl Into<StatField>,
) -> Result<&[Option<SourceMembers>]>
pub fn get_members( &self, field: impl Into<StatField>, ) -> Result<&[Option<SourceMembers>]>
Per-member source relations of this field’s actual output domain.
Sourcepub fn members_in(
&self,
domain: &DataDomainRef,
address: impl Into<MemberAddress>,
) -> Result<Option<SourceMembers>>
pub fn members_in( &self, domain: &DataDomainRef, address: impl Into<MemberAddress>, ) -> Result<Option<SourceMembers>>
Read a member’s source relation within its actual scientific domain.
Trait Implementations§
Source§impl Clone for StatResult
impl Clone for StatResult
Auto Trait Implementations§
impl Forget for StatResult
impl Freeze for StatResult
impl Move for StatResult
impl RefUnwindSafe for StatResult
impl Send for StatResult
impl Sync for StatResult
impl Unpin for StatResult
impl UnsafeUnpin for StatResultwhere
*const ArcInner<StatData> is !null: UnsafeUnpin,
PhantomData<ArcInner<StatData>>: UnsafeUnpin,
impl UnwindSafe for StatResultwhere
Arc<StatData>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.