Struct git_object::commit::message::BodyRef [−][src]
pub struct BodyRef<'a> { /* fields omitted */ }
Expand description
A reference to a message body, further parsed to only contain the non-trailer parts.
See git-interpret-trailers for more information on what constitutes trailers and not that this implementation is only good for typical sign-off footer or key-value parsing.
Note that we only parse trailers from the bottom of the body.
Implementations
Parse body
bytes into the trailer and the actual body.
Returns the body with the trailers stripped.
You can iterate trailers with the trailers()
method.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for BodyRef<'a>
impl<'a> UnwindSafe for BodyRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more