Add tracking issue
This commit is contained in:
parent
0f0e1c1691
commit
7b3f72906f
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ impl bool {
|
||||||
/// assert_eq!(false.then(0), None);
|
/// assert_eq!(false.then(0), None);
|
||||||
/// assert_eq!(true.then(0), Some(0));
|
/// assert_eq!(true.then(0), Some(0));
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "bool_to_option", issue = "0")]
|
#[unstable(feature = "bool_to_option", issue = "64260")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn then<T>(self, t: T) -> Option<T> {
|
pub fn then<T>(self, t: T) -> Option<T> {
|
||||||
if self {
|
if self {
|
||||||
|
@ -33,7 +33,7 @@ impl bool {
|
||||||
/// assert_eq!(false.then_with(|| 0), None);
|
/// assert_eq!(false.then_with(|| 0), None);
|
||||||
/// assert_eq!(true.then_with(|| 0), Some(0));
|
/// assert_eq!(true.then_with(|| 0), Some(0));
|
||||||
/// ```
|
/// ```
|
||||||
#[unstable(feature = "bool_to_option", issue = "0")]
|
#[unstable(feature = "bool_to_option", issue = "64260")]
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn then_with<T, F: FnOnce() -> T>(self, f: F) -> Option<T> {
|
pub fn then_with<T, F: FnOnce() -> T>(self, f: F) -> Option<T> {
|
||||||
if self {
|
if self {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue