pub struct Version { /* private fields */ }
Expand description

Version information about libgit2 and the capabilities it supports.

Implementations

Returns a Version which provides information about libgit2.

Returns the version of libgit2.

The return value is a tuple of (major, minor, rev)

Returns the version of the libgit2-sys crate.

Returns true if this was built with the vendored version of libgit2.

Returns true if libgit2 was built thread-aware and can be safely used from multiple threads.

Returns true if libgit2 was built with and linked against a TLS implementation.

Custom TLS streams may still be added by the user to support HTTPS regardless of this.

Returns true if libgit2 was built with and linked against libssh2.

A custom transport may still be added by the user to support libssh2 regardless of this.

Returns true if libgit2 was built with support for sub-second resolution in file modification times.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.