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
Trait Implementations
impl<'repo> Debug for Blob<'repo>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl<'repo> Clone for Blob<'repo>[src]
fn clone(&self) -> Self[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more