src/instance.rs

branch
dev
changeset 75
e9f4550cfa18
parent 59
9226980e45a7
child 88
086a59b3a2b4
--- a/src/instance.rs	Mon Dec 30 11:00:12 2024 -0500
+++ b/src/instance.rs	Tue Dec 31 08:49:10 2024 -0500
@@ -8,7 +8,7 @@
     Borrowed(B),
 }
 
-/// A very basic implementation of [`Cow`] without a [`Clone`] trait dependency.
+/// A very basic implementation of [`std::borrow::Cow`] without a [`Clone`] trait dependency.
 pub type MyCow<'b, X> = EitherDecomp<X, &'b X>;
 
 impl<'b, X> std::ops::Deref for MyCow<'b, X> {
@@ -89,8 +89,6 @@
 /// Helper trait for functions to work with either owned values or references to either the
 /// “principal type” `X` or types some present a subset of `X`. In the latter sense, this
 /// generalises [`std::borrow::ToOwned`], [`std::borrow::Borrow`], and [`std::borrow::Cow`].
-/// This type also includes iteratation facilities when `X` is a [`Collection`], to avoid
-/// the possibly costly conversion of such subset types into `X`.
 pub trait Instance<X : Space, D = <X as Space>::Decomp> : Sized where D : Decomposition<X> {
     /// Decomposes self according to `decomposer`.
     fn decompose<'b>(self) -> D::Decomposition<'b>

mercurial