We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Clone
ThreadSafeRepository
1 parent 7df8cf3 commit c79991cCopy full SHA for c79991c
gix/src/types.rs
@@ -150,6 +150,9 @@ pub struct Repository {
150
///
151
/// Note that this type purposefully isn't very useful until it is converted into a thread-local repository with `to_thread_local()`,
152
/// it's merely meant to be able to exist in a `Sync` context.
153
+///
154
+/// Note that it can also cheaply be cloned, and it will retain references to all contained resources.
155
+#[derive(Clone)]
156
pub struct ThreadSafeRepository {
157
/// A store for references to point at objects
158
pub refs: crate::RefStore,
0 commit comments