diff --git a/src/extensions/collection.rs b/src/extensions/collection.rs index debd207..83a13e2 100644 --- a/src/extensions/collection.rs +++ b/src/extensions/collection.rs @@ -278,7 +278,7 @@ pub trait Collection { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -312,7 +312,7 @@ pub trait Collection { /// [`group_fold()`]: crate::CollectionInto::group_fold /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = vec![1, 2, 3]; @@ -343,7 +343,7 @@ pub trait Collection { /// [`group_reduce()`]: crate::CollectionInto::group_reduce /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = vec![1, 2, 3]; @@ -611,7 +611,7 @@ pub trait Collection { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// # let a_source = vec![1, 2, 3]; /// let a = vec![1, 2, 3]; diff --git a/src/extensions/collection_into.rs b/src/extensions/collection_into.rs index 38baeb0..97f1053 100644 --- a/src/extensions/collection_into.rs +++ b/src/extensions/collection_into.rs @@ -325,7 +325,7 @@ pub trait CollectionInto { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -340,7 +340,7 @@ pub trait CollectionInto { /// situation, where the type of the closure is a double reference: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![&1, &2, &3]; /// @@ -355,7 +355,7 @@ pub trait CollectionInto { /// one: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![&1, &2, &3]; /// @@ -369,7 +369,7 @@ pub trait CollectionInto { /// or both: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![&0, &1, &2]; /// @@ -405,7 +405,7 @@ pub trait CollectionInto { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -420,7 +420,7 @@ pub trait CollectionInto { /// situation, where the type of the closure is a double reference: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![&1, &2, &3]; /// @@ -435,7 +435,7 @@ pub trait CollectionInto { /// one: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![&1, &2, &3]; /// @@ -449,7 +449,7 @@ pub trait CollectionInto { /// or both: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![&0, &1, &2]; /// @@ -485,7 +485,7 @@ pub trait CollectionInto { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -498,7 +498,7 @@ pub trait CollectionInto { /// Here's the same example, but with [`filter()`] and [`map()`]: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -536,7 +536,7 @@ pub trait CollectionInto { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -549,7 +549,7 @@ pub trait CollectionInto { /// Here's the same example, but with [`filter()`] and [`map_ref()`]: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -606,7 +606,7 @@ pub trait CollectionInto { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![vec![1, 2], vec![3]]; /// @@ -616,7 +616,7 @@ pub trait CollectionInto { /// Mapping and then flattening: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -631,7 +631,7 @@ pub trait CollectionInto { /// in this case since it conveys intent more clearly: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -645,7 +645,7 @@ pub trait CollectionInto { /// Flattening works on any `IntoIterator` type, including `Option` and `Result`: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let options = vec![Some(123), Some(321), None, Some(231)]; /// let results = vec![Ok(123), Ok(321), Err(456), Ok(231)]; @@ -658,7 +658,7 @@ pub trait CollectionInto { /// Flattening only removes one level of nesting at a time: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let d3 = vec![vec![vec![1, 2], vec![3, 4]], vec![vec![5, 6], vec![7, 8]]]; /// @@ -713,7 +713,7 @@ pub trait CollectionInto { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -758,7 +758,7 @@ pub trait CollectionInto { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -888,7 +888,7 @@ pub trait CollectionInto { /// The discriminator function takes a reference to an element and returns a group key. /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = vec![1, 2, 3]; @@ -924,7 +924,7 @@ pub trait CollectionInto { /// [`group_fold_ref()`]: crate::Collection::group_fold_ref /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = vec![1, 2, 3]; @@ -970,7 +970,7 @@ pub trait CollectionInto { /// [`group_reduce_ref()`]: crate::Collection::group_reduce_ref /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = vec![1, 2, 3]; @@ -1013,7 +1013,7 @@ pub trait CollectionInto { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashSet; /// /// let a = vec![1, 2, 2, 3]; @@ -1352,7 +1352,7 @@ pub trait CollectionInto { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// # let a_source = vec![1, 2, 3]; /// let a = vec![1, 2, 3]; diff --git a/src/extensions/map.rs b/src/extensions/map.rs index 7ad2854..0ec6f77 100644 --- a/src/extensions/map.rs +++ b/src/extensions/map.rs @@ -532,7 +532,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -569,7 +569,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -600,7 +600,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -634,7 +634,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -678,7 +678,7 @@ pub trait Map { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -697,7 +697,7 @@ pub trait Map { /// Here's the same example, but with [`filter()`] and [`map()`]: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -741,7 +741,7 @@ pub trait Map { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -760,7 +760,7 @@ pub trait Map { /// Here's the same example, but with [`filter()`] and [`map_ref()`]: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -903,7 +903,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -959,7 +959,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -1130,7 +1130,7 @@ pub trait Map { /// Basic usage: /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashMap; /// /// let a = HashMap::from([ @@ -1166,7 +1166,7 @@ pub trait Map { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// use std::collections::HashSet; /// use std::collections::HashMap; /// diff --git a/src/extensions/sequence.rs b/src/extensions/sequence.rs index 88504c0..c476885 100644 --- a/src/extensions/sequence.rs +++ b/src/extensions/sequence.rs @@ -193,7 +193,7 @@ pub trait Sequence { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 2, 3]; /// @@ -223,7 +223,7 @@ pub trait Sequence { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 2, 3]; /// @@ -258,7 +258,7 @@ pub trait Sequence { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 2, 3]; /// @@ -294,7 +294,7 @@ pub trait Sequence { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 2, 3]; /// @@ -339,7 +339,7 @@ pub trait Sequence { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 2, 3]; /// diff --git a/src/extensions/sequence_into.rs b/src/extensions/sequence_into.rs index a354e42..b1b5e40 100644 --- a/src/extensions/sequence_into.rs +++ b/src/extensions/sequence_into.rs @@ -1056,7 +1056,7 @@ pub trait SequenceInto { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = vec![1, 2, 3]; /// @@ -1247,7 +1247,7 @@ pub trait SequenceInto { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// # let a_source = vec![1, 2, 3]; /// let a = vec![1, 2, 3]; diff --git a/src/extensions/slice.rs b/src/extensions/slice.rs index 92dd893..50a02f3 100644 --- a/src/extensions/slice.rs +++ b/src/extensions/slice.rs @@ -30,7 +30,7 @@ pub trait Slice { /// # Example /// /// ``` - /// use crate::cantrip::*; + /// use cantrip::*; /// /// let a = [1, 2, 3]; ///