[][src]Struct git2::Blob

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

A structure to represent a git blob

Methods

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 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> Drop for Blob<'repo>
[src]

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl<'repo> !Send for Blob<'repo>

impl<'repo> !Sync for Blob<'repo>

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]