pub fn new_with(cap: usize, profile: NodeProfile) -> Self {
        Self {
            profile,
            nodes: Nodes::new(cap),
            layers: Vec::default(),
            policy: Box::new(DefaultPolicy::default()),
        }
    }
/// create a new topology for the given [`NodeProfile`] and capacity
///
/// The capacity will be the max number of entries in the topology. Removing
/// the items that are the least recently used.
///
/// [`NodeProfile`]: ./struct.NodeProfile.html
create a new topology for the given [`NodeProfile`] and capacity
The capacity will be the max number of entries in the topology. Removing
the items that are the least recently used.


create a new topology for the given [ ` NodeProfile ` ] and capacity The capacity will be the max number of entries in the topology . Removing the items that are the least recently used .
pub fn new_with(cap: usize, profile: NodeProfile) -> Self {
        Self {
            profile,
            nodes: Nodes::new(cap),
            layers: Vec::default(),
            policy: Box::new(DefaultPolicy::default()),
        }
    }
pub fn new_with ( cap : usize , profile : NodeProfile ) -> Self { Self { profile , nodes : Nodes :: new ( cap ) , layers : Vec :: default ( ) , policy : Box :: new ( DefaultPolicy :: default ( ) ) , } }
create a new topology for the given [`NodeProfile`] and capacity
The capacity will be the max number of entries in the topology.
create a new topology for the given [ ` NodeProfile ` ] and capacity The capacity will be the max number of entries in the topology .
cap
usize
profile
NodeProfile