Struct git2::Blob [] [src]

pub struct Blob<'repo> {
    // some fields omitted
}

A structure to represent a git blob

Methods

impl<'repo> Blob<'repo>
[src]

fn id(&self) -> Oid

Get the id (SHA1) of a repository blob

fn is_binary(&self) -> bool

Determine if the blob content is most certainly binary or not.

fn content(&self) -> &[u8]

Get the content of this blob.

fn as_object(&self) -> &Object<'repo>

Casts this Blob to be usable as an Object

fn into_object(self) -> Object<'repo>

Consumes Blob to be returned as an Object

Trait Implementations

impl<'repo> Drop for Blob<'repo>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more