pub struct CopyItems(/* private fields */);Expand description
The items one copy names: at least one, because a copy naming none is not a copy.
A newtype rather than a bare Vec, for the reason Repository is one: the empty
list is not a copy of nothing, it is a caller mistake, and a type that can hold it
leaves every reader to decide what it means — a report with no entries, an error, a
silent success. None of those is better than not being able to say it.
Implementations§
Trait Implementations§
impl Eq for CopyItems
impl StructuralPartialEq for CopyItems
Auto Trait Implementations§
impl Freeze for CopyItems
impl RefUnwindSafe for CopyItems
impl Send for CopyItems
impl Sync for CopyItems
impl Unpin for CopyItems
impl UnsafeUnpin for CopyItems
impl UnwindSafe for CopyItems
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.