pub fn summary(&self) -> String {
        let ns = self.nodes.len();
        let malicious_ns = self
            .nodes
            .iter()
            .filter(|n| n.malicious_behaviour.is_some())
            .count();
        let mut s = DefaultHasher::new();
        format!("{:?}", self).hash(&mut s);
        let config_hash = format!("{:x}", s.finish());
        format!("S{:02}{:02}{}", ns, malicious_ns, &config_hash[0..3])
    }
/// provides a small summary of this subnet topology and config to be used
/// as a part of a test environment identifier.
provides a small summary of this subnet topology and config to be used
as a part of a test environment identifier.
provides a small summary of this subnet topology and config to be used as a part of a test environment identifier .
pub fn summary(&self) -> String {
        let ns = self.nodes.len();
        let malicious_ns = self
            .nodes
            .iter()
            .filter(|n| n.malicious_behaviour.is_some())
            .count();
        let mut s = DefaultHasher::new();
        format!("{:?}", self).hash(&mut s);
        let config_hash = format!("{:x}", s.finish());
        format!("S{:02}{:02}{}", ns, malicious_ns, &config_hash[0..3])
    }
pub fn summary ( & self ) -> String { let ns = self . nodes . len ( ) ; let malicious_ns = self . nodes . iter ( ) . filter ( | n | n . malicious_behaviour . is_some ( ) ) . count ( ) ; let mut s = DefaultHasher :: new ( ) ; format ! ( " " self ) . hash ( & mut s ) ; let config_hash = format ! ( " " s finish ( ) ) ; format ! ( " " ns malicious_ns config_hash [ 0 3 ] ) }
provides a small summary of this subnet topology and config to be used
as a part of a test environment identifier.
provides a small summary of this subnet topology and config to be used as a part of a test environment identifier .
&self
&self