@@ -16,6 +16,7 @@ use crate::{Error, OptionOperations};
1616/// This trait is auto-implemented for [`OptionOperations`] types
1717/// implementing `Sub<Rhs>`.
1818pub trait OptionSub < Rhs , InnerRhs = Rhs > {
19+ /// The resulting inner type after applying the operation.
1920 type Output ;
2021
2122 /// Computes the substraction.
@@ -191,6 +192,7 @@ where
191192/// Note that since the `std` library doesn't define any `CheckedSub` trait,
192193/// users must provide the base implementation for the inner type.
193194pub trait OptionCheckedSub < Rhs = Self , InnerRhs = Rhs > {
195+ /// The resulting inner type after applying the operation.
194196 type Output ;
195197
196198 /// Computes the checked substraction.
@@ -313,6 +315,7 @@ impl OptionCheckedSub<std::time::Duration> for std::time::SystemTime {
313315/// Note that since the `std` library doesn't define any `OverflowingSub`
314316/// trait, users must provide the base implementation for the inner type.
315317pub trait OptionOverflowingSub < Rhs = Self , InnerRhs = Rhs > {
318+ /// The resulting inner type after applying the operation.
316319 type Output ;
317320
318321 /// Returns a tuple of the substraction along with a boolean indicating
@@ -403,6 +406,7 @@ impl_for_ints!(OptionOverflowingSub, {
403406/// Note that since the `std` library doesn't define any `SaturatingSub`
404407/// trait, users must provide the base implementation for the inner type.
405408pub trait OptionSaturatingSub < Rhs = Self , InnerRhs = Rhs > {
409+ /// The resulting inner type after applying the operation.
406410 type Output ;
407411
408412 /// Computes the substraction, saturating at the numeric bounds instead of
@@ -492,6 +496,7 @@ impl_for_ints_and_duration!(OptionSaturatingSub, {
492496/// Note that since the `std` library doesn't define any `WrappingSub`
493497/// trait, users must provide the base implementation for the inner type.
494498pub trait OptionWrappingSub < Rhs = Self , InnerRhs = Rhs > {
499+ /// The resulting inner type after applying the operation.
495500 type Output ;
496501
497502 /// Computes the substraction, wrapping around at the numeric bounds
0 commit comments