pub type IndexThreads = Any<IndexThreads>;Expand description
The index.threads key.
Aliased Type§
pub struct IndexThreads {
pub name: &'static str,
pub section: &'static dyn Section,
pub subsection_requirement: Option<SubSectionRequirement>,
pub link: Option<Link>,
pub note: Option<Note>,
/* private fields */
}Fields§
§name: &'static strThe key of the value in the git configuration.
section: &'static dyn SectionThe parent section of the key.
subsection_requirement: Option<SubSectionRequirement>The subsection requirement to use.
link: Option<Link>A link to other resources that might be eligible as value.
note: Option<Note>A note about this key.
Implementations§
Source§impl IndexThreads
impl IndexThreads
Sourcepub fn try_into_index_threads(
&'static self,
value: Cow<'_, BStr>,
) -> Result<usize, GenericErrorWithValue>
pub fn try_into_index_threads( &'static self, value: Cow<'_, BStr>, ) -> Result<usize, GenericErrorWithValue>
Parse value into the amount of threads to use, with 1 being single-threaded, or 0 indicating
to select the amount of threads, with any other number being the specific amount of threads to use.