remove debug requirement that was used while debugging, add rustfmt file and gitignore for target
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
target
|
||||||
Generated
+16
@@ -0,0 +1,16 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 3
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "either"
|
||||||
|
version = "1.8.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "range_bounds_map"
|
||||||
|
version = "0.0.1"
|
||||||
|
dependencies = [
|
||||||
|
"either",
|
||||||
|
]
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
edition="2024"
|
||||||
|
version = "Two"
|
||||||
|
hard_tabs=true
|
||||||
|
imports_granularity="Module"
|
||||||
|
group_imports="StdExternalCrate"
|
||||||
|
max_width=80
|
||||||
@@ -18,7 +18,6 @@ along with range_bounds_map. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::fmt::Debug;
|
|
||||||
use std::iter::once;
|
use std::iter::once;
|
||||||
use std::ops::Bound;
|
use std::ops::Bound;
|
||||||
|
|
||||||
@@ -33,8 +32,8 @@ pub struct RangeBoundsMap<I, K, V> {
|
|||||||
|
|
||||||
impl<I, K, V> RangeBoundsMap<I, K, V>
|
impl<I, K, V> RangeBoundsMap<I, K, V>
|
||||||
where
|
where
|
||||||
K: RangeBoundsExt<I> + Debug,
|
K: RangeBoundsExt<I>,
|
||||||
I: Ord + Clone + Debug,
|
I: Ord + Clone,
|
||||||
{
|
{
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
RangeBoundsMap {
|
RangeBoundsMap {
|
||||||
@@ -77,8 +76,6 @@ where
|
|||||||
let end = StartBound::from(search_range_bounds.end_bound().cloned())
|
let end = StartBound::from(search_range_bounds.end_bound().cloned())
|
||||||
.as_end_bound();
|
.as_end_bound();
|
||||||
|
|
||||||
dbg!(&start);
|
|
||||||
dbg!(&end);
|
|
||||||
let start_range_bounds = (
|
let start_range_bounds = (
|
||||||
//Included is lossless regarding meta-bounds searches
|
//Included is lossless regarding meta-bounds searches
|
||||||
//which is what we want
|
//which is what we want
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ pub struct RangeBoundsSet<I, K> {
|
|||||||
|
|
||||||
impl<I, K> RangeBoundsSet<I, K>
|
impl<I, K> RangeBoundsSet<I, K>
|
||||||
where
|
where
|
||||||
K: RangeBoundsExt<I> + std::fmt::Debug,
|
K: RangeBoundsExt<I>,
|
||||||
I: Ord + Clone + std::fmt::Debug,
|
I: Ord + Clone,
|
||||||
{
|
{
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
RangeBoundsSet {
|
RangeBoundsSet {
|
||||||
|
|||||||
Reference in New Issue
Block a user