Giter VIP home page Giter VIP logo

bst's Introduction

An ordered map and set based on a binary search tree.

Documentation is available at https://contain-rs.github.io/bst/bst.

To use bst with Cargo, add this to Cargo.toml:

[dependencies]
bst = "*"

and this to the crate root:

extern crate bst;

bst's People

Contributors

apasel422 avatar gankra avatar tbu- avatar csouth3 avatar rsaarelm avatar vhbit avatar csherratt avatar

Stargazers

Roman Nazarov avatar Hossein Mayboudi avatar Yoshi avatar savi2w avatar Rafael Escobar avatar cybai (Haku) avatar dogHere avatar Chris A. avatar Clar Fon avatar  avatar Florian Bender avatar Márk Bartos avatar Stanislav Tkach avatar Mark avatar Chris Gill avatar

Watchers

Carl Lerche avatar  avatar James Cloos avatar  avatar Huon Wilson avatar Maxim Ryazanov avatar Peter Blackson avatar Evgeny Khudoba avatar  avatar Clar Fon avatar

Forkers

rsaarelm bkearns

bst's Issues

Implement bounded iterators

The following methods should be added:

use std::collections::Bound;

impl<K, V, C> Map<K, V, C> where C: Compare<K> {
    fn range<Min: ?Sized, Max: ?Sized>(&self, min: Bound<&Min>, max: Bound<&Max>)
        -> Range<K, V> where C: Compare<Min, K> + Compare<Max, K>;

    fn range_mut<Min: ?Sized, Max: ?Sized>(&mut self, min: Bound<&Min>, max: Bound<&Max>)
        -> RangeMut<K, V> where C: Compare<Min, K> + Compare<Max, K>;
}

impl<T, C> Set<T> where C: Compare<T> {
    fn range<Min: ?Sized, Max: ?Sized>(&self, min: Bound<&Min>, max: Bound<&Max>)
        -> Range<T> where C: Compare<Min, T> + Compare<Max, T>;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.