Struct git2::Blob [−][src]
A structure to represent a git blob
Implementations
impl<'repo> Blob<'repo>
[src]
pub fn id(&self) -> Oid
[src]
Get the id (SHA1) of a repository blob
pub fn is_binary(&self) -> bool
[src]
Determine if the blob content is most certainly binary or not.
pub fn content(&self) -> &[u8]ⓘ
[src]
Get the content of this blob.
pub fn size(&self) -> usize
[src]
Get the size in bytes of the contents of this blob.
pub fn as_object(&self) -> &Object<'repo>
[src]
Casts this Blob to be usable as an Object
pub fn into_object(self) -> Object<'repo>
[src]
Consumes Blob to be returned as an Object
Trait Implementations
impl<'repo> Clone for Blob<'repo>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'repo> Debug for Blob<'repo>
[src]
impl<'repo> Drop for Blob<'repo>
[src]
Auto Trait Implementations
impl<'repo> RefUnwindSafe for Blob<'repo>
impl<'repo> !Send for Blob<'repo>
impl<'repo> !Sync for Blob<'repo>
impl<'repo> Unpin for Blob<'repo>
impl<'repo> UnwindSafe for Blob<'repo>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,