Struct git_repository::ObjectDetached
source · [−]Expand description
A detached, self-contained object, without access to its source repository.
Use it if an ObjectRef
should be sent over thread boundaries or stored in collections.
Fields
id: ObjectId
The id of the object
kind: Kind
The kind of the object
data: Vec<u8>
The fully decoded object data
Implementations
sourceimpl ObjectDetached
impl ObjectDetached
sourcepub fn attach(self, repo: &Repository) -> Object<'_>
pub fn attach(self, repo: &Repository) -> Object<'_>
Infuse this owned object with repo
access.
Trait Implementations
sourceimpl AsRef<[u8]> for ObjectDetached
impl AsRef<[u8]> for ObjectDetached
sourceimpl Clone for ObjectDetached
impl Clone for ObjectDetached
sourcefn clone(&self) -> ObjectDetached
fn clone(&self) -> ObjectDetached
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ObjectDetached
impl Debug for ObjectDetached
sourceimpl<'repo> From<Commit<'repo>> for ObjectDetached
impl<'repo> From<Commit<'repo>> for ObjectDetached
sourceimpl<'repo> From<Object<'repo>> for ObjectDetached
impl<'repo> From<Object<'repo>> for ObjectDetached
sourceimpl<'repo> From<Tag<'repo>> for ObjectDetached
impl<'repo> From<Tag<'repo>> for ObjectDetached
Auto Trait Implementations
impl RefUnwindSafe for ObjectDetached
impl Send for ObjectDetached
impl Sync for ObjectDetached
impl Unpin for ObjectDetached
impl UnwindSafe for ObjectDetached
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToHex for T where
T: AsRef<[u8]>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
sourcefn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
Encode the hex strict representing self
into the result. Lower case
letters are used (e.g. f9b4ca
) Read more
sourcefn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
Encode the hex strict representing self
into the result. Upper case
letters are used (e.g. F9B4CA
) Read more