Struct git2::Blob
[−]
[src]
pub struct Blob<'repo> { /* fields omitted */ }
A structure to represent a git blob
Methods
impl<'repo> Blob<'repo>
[src]
fn id(&self) -> Oid
[src]
Get the id (SHA1) of a repository blob
fn is_binary(&self) -> bool
[src]
Determine if the blob content is most certainly binary or not.
fn content(&self) -> &[u8]
[src]
Get the content of this blob.
fn as_object(&self) -> &Object<'repo>
[src]
Casts this Blob to be usable as an Object
fn into_object(self) -> Object<'repo>
[src]
Consumes Blob to be returned as an Object