/// Creates a new `PlatformSummary` instance from a platform.
Creates a new `PlatformSummary` instance from a platform.
Creates a new ` PlatformSummary ` instance from a platform .
pub fn new(platform: &Platform) -> Self {
        Self {
            triple: platform.triple_str().to_string(),
            target_features: TargetFeaturesSummary::new(platform.target_features()),
            flags: platform.flags().map(|flag| flag.to_string()).collect(),
        }
    }
pub fn new ( platform : & Platform ) -> Self { Self { triple : platform . triple_str ( ) . to_string ( ) , target_features : TargetFeaturesSummary :: new ( platform . target_features ( ) ) , flags : platform . flags ( ) . map ( | flag | flag . to_string ( ) ) . collect ( ) , } }
Creates a new `PlatformSummary` instance from a platform.
Creates a new ` PlatformSummary ` instance from a platform .
platform
&Platform