docs: add num_tyre_stint doc links to tyre-related vectors

This commit is contained in:
Maciej Pędzich 2025-02-28 13:19:56 +01:00
parent 0f28d8b763
commit 3f9640ec9c
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D

View File

@ -41,15 +41,18 @@ pub struct FinalClassificationData {
)]
pub num_tyre_stints: usize,
/// Actual tyres used by the driver.
/// Should have a size equal to `num_tyre_stints`.
/// Should have a size equal to
/// [`num_tyre_stints`](field@FinalClassificationData::num_tyre_stints).
#[br(count(num_tyre_stints), pad_after(MAX_NUM_TYRE_STINTS - num_tyre_stints))]
pub tyre_stints_actual: Vec<ActualTyreCompound>,
/// Visual tyres used by the driver.
/// Should have a size equal to `num_tyre_stints`.
/// Should have a size equal to
/// [`num_tyre_stints`](field@FinalClassificationData::num_tyre_stints).
#[br(count(num_tyre_stints), pad_after(MAX_NUM_TYRE_STINTS - num_tyre_stints))]
pub tyre_stints_visual: Vec<VisualTyreCompound>,
/// The lap numbers the stints end on.
/// Should have a size equal to `num_tyre_stints`.
/// Should have a size equal to
/// [`num_tyre_stints`](field@FinalClassificationData::num_tyre_stints).
#[br(count(num_tyre_stints), pad_after(MAX_NUM_TYRE_STINTS - num_tyre_stints))]
pub tyre_stints_end_laps: Vec<u8>,
}