pub struct LooseObjects { /* private fields */ }Expand description
An objects directory with no repository around it. Nothing is read from
disk: opening a repository would follow its config and commondir, which
is no good for a directory somebody else can write to.
Implementations§
Source§impl LooseObjects
impl LooseObjects
pub fn at(dir: &Path) -> Self
pub fn write_blob(&self, bytes: &[u8]) -> Result<GitId>
pub fn write_tree(&self, files: &FileMap) -> Result<GitId>
pub fn write_commit(&self, spec: &CommitSpec) -> Result<GitId>
Auto Trait Implementations§
impl Forget for LooseObjects
impl Freeze for LooseObjects
impl RefUnwindSafe for LooseObjects
impl Send for LooseObjects
impl Sync for LooseObjects
impl Unpin for LooseObjects
impl UnsafeUnpin for LooseObjects
impl UnwindSafe for LooseObjects
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