pub fn with_options(node_id: T, rng: R, options: NodeOptions) -> Self {
        Node {
            id: node_id,
            actions: VecDeque::new(),
            active_view: Vec::with_capacity(options.max_active_view_size as usize),
            passive_view: Vec::with_capacity(options.max_passive_view_size as usize),
            rng,
            options,
        }
    }
/// Makes a new `Node` instance with the given options.
Makes a new `Node` instance with the given options.
Makes a new ` Node ` instance with the given options .
pub fn with_options(node_id: T, rng: R, options: NodeOptions) -> Self {
        Node {
            id: node_id,
            actions: VecDeque::new(),
            active_view: Vec::with_capacity(options.max_active_view_size as usize),
            passive_view: Vec::with_capacity(options.max_passive_view_size as usize),
            rng,
            options,
        }
    }
pub fn with_options ( node_id : T , rng : R , options : NodeOptions ) -> Self { Node { id : node_id , actions : VecDeque :: new ( ) , active_view : Vec :: with_capacity ( options . max_active_view_size as usize ) , passive_view : Vec :: with_capacity ( options . max_passive_view_size as usize ) , rng , options , } }
Makes a new `Node` instance with the given options.
Makes a new ` Node ` instance with the given options .
node_id
T
rng
R
options
NodeOptions
node_id
T
rng
R
options
NodeOptions