remove feature-gates in docs
This commit is contained in:
@@ -123,12 +123,11 @@ impl<'map> Performance<'map> {
|
||||
|
||||
/// Amount of passed objects for partial plays, e.g. a fail.
|
||||
///
|
||||
#[cfg_attr(
|
||||
feature = "gradual",
|
||||
doc = "If you want to calculate the performance after every few objects, instead of
|
||||
using [`AnyPP`] multiple times with different `passed_objects`, you should use
|
||||
[`GradualPerformanceAttributes`](crate::GradualPerformance)."
|
||||
)]
|
||||
/// If you want to calculate the performance after every few objects,
|
||||
/// instead of using [`Performance`] multiple times with different
|
||||
/// `passed_objects`, you should use [`GradualPerformance`].
|
||||
///
|
||||
/// [`GradualPerformance`]: crate::GradualPerformance
|
||||
pub fn passed_objects(self, passed_objects: u32) -> Self {
|
||||
match self {
|
||||
Self::Osu(o) => Self::Osu(o.passed_objects(passed_objects)),
|
||||
|
||||
@@ -104,12 +104,11 @@ impl<'map> CatchPerformance<'map> {
|
||||
|
||||
/// Amount of passed objects for partial plays, e.g. a fail.
|
||||
///
|
||||
#[cfg_attr(
|
||||
feature = "gradual",
|
||||
doc = "If you want to calculate the performance after every few objects, instead of
|
||||
using [`CatchPP`] multiple times with different `passed_objects`, you should use
|
||||
[`CatchGradualPerformanceAttributes`](crate::catch::CatchGradualPerformance)."
|
||||
)]
|
||||
/// If you want to calculate the performance after every few objects,
|
||||
/// instead of using [`CatchPerformance`] multiple times with different
|
||||
/// `passed_objects`, you should use [`CatchGradualPerformance`].
|
||||
///
|
||||
/// [`CatchGradualPerformance`]: crate::catch::CatchGradualPerformance
|
||||
pub const fn passed_objects(mut self, passed_objects: u32) -> Self {
|
||||
self.passed_objects = Some(passed_objects);
|
||||
|
||||
|
||||
@@ -64,12 +64,11 @@ impl<'map> ManiaPerformance<'map> {
|
||||
|
||||
/// Amount of passed objects for partial plays, e.g. a fail.
|
||||
///
|
||||
#[cfg_attr(
|
||||
feature = "gradual",
|
||||
doc = "If you want to calculate the performance after every few objects, instead of
|
||||
using [`ManiaPP`] multiple times with different `passed_objects`, you should use
|
||||
[`ManiaGradualPerformanceAttributes`](crate::mania::ManiaGradualPerformance)."
|
||||
)]
|
||||
/// If you want to calculate the performance after every few objects,
|
||||
/// instead of using [`ManiaPerformance`] multiple times with different
|
||||
/// `passed_objects`, you should use [`ManiaGradualPerformance`].
|
||||
///
|
||||
/// [`ManiaGradualPerformance`]: crate::mania::ManiaGradualPerformance
|
||||
pub const fn passed_objects(mut self, passed_objects: u32) -> Self {
|
||||
self.passed_objects = Some(passed_objects);
|
||||
|
||||
|
||||
@@ -159,12 +159,11 @@ impl<'map> OsuPerformance<'map> {
|
||||
|
||||
/// Amount of passed objects for partial plays, e.g. a fail.
|
||||
///
|
||||
#[cfg_attr(
|
||||
feature = "gradual",
|
||||
doc = "If you want to calculate the performance after every few objects, instead of
|
||||
using [`OsuPP`] multiple times with different `passed_objects`, you should use
|
||||
[`OsuGradualPerformanceAttributes`](crate::osu::OsuGradualPerformance)."
|
||||
)]
|
||||
/// If you want to calculate the performance after every few objects,
|
||||
/// instead of using [`OsuPerformance`] multiple times with different
|
||||
/// `passed_objects`, you should use [`OsuGradualPerformance`].
|
||||
///
|
||||
/// [`OsuGradualPerformance`]: crate::osu::OsuGradualPerformance
|
||||
pub const fn passed_objects(mut self, passed_objects: u32) -> Self {
|
||||
self.passed_objects = Some(passed_objects);
|
||||
|
||||
|
||||
@@ -106,12 +106,11 @@ impl<'map> TaikoPerformance<'map> {
|
||||
|
||||
/// Amount of passed objects for partial plays, e.g. a fail.
|
||||
///
|
||||
#[cfg_attr(
|
||||
feature = "gradual",
|
||||
doc = "If you want to calculate the performance after every few objects, instead of
|
||||
using [`TaikoPP`] multiple times with different `passed_objects`, you should use
|
||||
[`TaikoGradualPerformanceAttributes`](crate::taiko::TaikoGradualPerformance)."
|
||||
)]
|
||||
/// If you want to calculate the performance after every few objects,
|
||||
/// instead of using [`TaikoPerformance`] multiple times with different
|
||||
/// `passed_objects`, you should use [`TaikoGradualPerformance`].
|
||||
///
|
||||
/// [`TaikoGradualPerformance`]: crate::taiko::TaikoGradualPerformance
|
||||
pub const fn passed_objects(mut self, passed_objects: u32) -> Self {
|
||||
self.passed_objects = Some(passed_objects);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user