pub struct PortfolioStats {
pub directory: String,
pub features: Vec<FeatureStat>,
pub decisions: Vec<DecisionStat>,
pub roadmaps: Vec<ValidityStat>,
pub prompts: Vec<ValidityStat>,
pub designs: Vec<ValidityStat>,
pub unrecognized: Vec<UnrecognizedStat>,
pub relationship_counts: Vec<(String, usize)>,
}Fields§
§directory: String§features: Vec<FeatureStat>§decisions: Vec<DecisionStat>§roadmaps: Vec<ValidityStat>§prompts: Vec<ValidityStat>§designs: Vec<ValidityStat>§unrecognized: Vec<UnrecognizedStat>§relationship_counts: Vec<(String, usize)>{canonical space section -> presence count}, canonical order.
Implementations§
Source§impl PortfolioStats
impl PortfolioStats
pub fn files_found(&self) -> usize
pub fn valid_features(&self) -> usize
pub fn invalid_features(&self) -> usize
pub fn total_requirements(&self) -> usize
pub fn total_metrics(&self) -> usize
pub fn total_risks(&self) -> usize
Sourcepub fn missing_metrics(&self) -> Vec<&str>
pub fn missing_metrics(&self) -> Vec<&str>
Names of features with zero success metrics, in walk order.
pub fn missing_risks(&self) -> Vec<&str>
pub fn average_requirements(&self) -> f64
Sourcepub fn largest_feature(&self) -> Option<&FeatureStat>
pub fn largest_feature(&self) -> Option<&FeatureStat>
max(features, key=(requirements, _neg_name(name))).
Sourcepub fn requirements_by_feature(&self) -> Vec<&FeatureStat>
pub fn requirements_by_feature(&self) -> Vec<&FeatureStat>
sorted(features, key=(-requirements, name)).
pub fn invalid(&self) -> Vec<&FeatureStat>
pub fn decision_count(&self) -> usize
pub fn decision_status_counts(&self) -> Vec<(String, usize)>
pub fn decision_category_counts(&self) -> Vec<(String, usize)>
pub fn roadmap_count(&self) -> usize
pub fn valid_roadmaps(&self) -> usize
pub fn invalid_roadmaps(&self) -> Vec<&ValidityStat>
pub fn prompt_count(&self) -> usize
pub fn valid_prompts(&self) -> usize
pub fn invalid_prompts(&self) -> Vec<&ValidityStat>
pub fn design_count(&self) -> usize
pub fn valid_designs(&self) -> usize
pub fn invalid_designs(&self) -> Vec<&ValidityStat>
pub fn unrecognized_count(&self) -> usize
pub fn total_artifacts(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn has_meaningful_content(&self) -> bool
Auto Trait Implementations§
impl Freeze for PortfolioStats
impl RefUnwindSafe for PortfolioStats
impl Send for PortfolioStats
impl Sync for PortfolioStats
impl Unpin for PortfolioStats
impl UnsafeUnpin for PortfolioStats
impl UnwindSafe for PortfolioStats
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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