Struct git_repository::EasyShared [−][src]
pub struct EasyShared<'a> {
pub repo: &'a Repository,
pub state: State,
}
Expand description
A handle to a repository for use when the repository needs to be shared using an actual reference, providing state for one ObjectRef
at a time, created with Repository::to_easy()
For use in one-off commands that don’t have to deal with the changes they potentially incur.
Fields
repo: &'a Repository
The repository
state: State
The state with interior mutability
Trait Implementations
type RepoRef = &'repo Repository
type RepoRef = &'repo Repository
The type of a shared borrow to the Repository
type RepoRefMut = &'repo mut Repository
type RepoRefMut = &'repo mut Repository
The type of a mutable borrow to the Repository
Return a shared borrow to the repository. Read more
Returns a mutable borrow to the repository if possible. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EasyShared<'a>
impl<'a> Send for EasyShared<'a>
impl<'a> !Sync for EasyShared<'a>
impl<'a> Unpin for EasyShared<'a>
impl<'a> !UnwindSafe for EasyShared<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self