/// Creates a new history from the given initial data.
///
/// The history will start out with `current` as its initial address
/// origins, an empty diff list, and a maximum length of the diff list
/// of `keep`.
Creates a new history from the given initial data.
The history will start out with `current` as its initial address
origins, an empty diff list, and a maximum length of the diff list
of `keep`.
Creates a new history from the given initial data . The history will start out with ` current ` as its initial address origins an empty diff list and a maximum length of the diff list of ` keep ` .
pub fn new(current: AddressOrigins, keep: usize) -> Self {
        OriginsHistory(Arc::new(RwLock::new(
            HistoryInner {
                current: Arc::new(current),
                diffs: VecDeque::with_capacity(keep),
                metrics: VecDeque::with_capacity(keep),
                keep
            }
        )))
    }
pub fn new ( current : AddressOrigins , keep : usize ) -> Self { OriginsHistory ( Arc :: new ( RwLock :: new ( HistoryInner { current : Arc :: new ( current ) , diffs : VecDeque :: with_capacity ( keep ) , metrics : VecDeque :: with_capacity ( keep ) , keep } ) ) ) }
Creates a new history from the given initial data.
Creates a new history from the given initial data .
current
AddressOrigins
keep
usize