Struct git_config::file::SectionBody [−][src]
pub struct SectionBody<'event>(_);
Expand description
A opaque type that represents a section body.
Implementations
Retrieves the last matching value in a section with the given key. Returns None if the key was not found.
Retrieves the last matching value in a section with the given key, and attempts to convert the value into the provided type.
Errors
Returns an error if the key was not found, or if the conversion failed.
Retrieves all values that have the provided key name. This may return an empty vec, which implies there was values with the provided key.
Retrieves all values that have the provided key name. This may return an empty vec, which implies there was values with the provided key.
Errors
Returns an error if the conversion failed.
Returns an iterator visiting all keys in order.
Checks if the section contains the provided key.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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<'event> RefUnwindSafe for SectionBody<'event>
impl<'event> Send for SectionBody<'event>
impl<'event> Sync for SectionBody<'event>
impl<'event> Unpin for SectionBody<'event>
impl<'event> UnwindSafe for SectionBody<'event>
Blanket Implementations
Mutably borrows from an owned value. Read more