pub struct ReflogEntry<'reflog> { /* private fields */ }Expand description
An entry inside the reflog of a repository
Implementations§
Source§impl<'reflog> ReflogEntry<'reflog>
impl<'reflog> ReflogEntry<'reflog>
Sourcepub fn message_bytes(&self) -> Option<&[u8]>
pub fn message_bytes(&self) -> Option<&[u8]>
Get the log message as a byte array.
Trait Implementations§
Source§impl<'reflog> Binding for ReflogEntry<'reflog>
impl<'reflog> Binding for ReflogEntry<'reflog>
Source§type Raw = *const git_reflog_entry
type Raw = *const git_reflog_entry
The raw type that allows you to interact with libgit2-sys.
Source§unsafe fn from_raw(raw: *const git_reflog_entry) -> ReflogEntry<'reflog>
unsafe fn from_raw(raw: *const git_reflog_entry) -> ReflogEntry<'reflog>
Build a git2 struct from its Binding::Raw value.
Source§fn raw(&self) -> *const git_reflog_entry
fn raw(&self) -> *const git_reflog_entry
Access the Binding::Raw value for a struct. Read more
Source§unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
A null-handling version of Binding::from_raw. Read more
Auto Trait Implementations§
impl<'reflog> Freeze for ReflogEntry<'reflog>
impl<'reflog> RefUnwindSafe for ReflogEntry<'reflog>
impl<'reflog> !Send for ReflogEntry<'reflog>
impl<'reflog> !Sync for ReflogEntry<'reflog>
impl<'reflog> Unpin for ReflogEntry<'reflog>
impl<'reflog> UnsafeUnpin for ReflogEntry<'reflog>
impl<'reflog> UnwindSafe for ReflogEntry<'reflog>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more