/// Returns the result of the operation, if successful.
///
/// # Examples
///
/// ```
/// use crossbeam_deque::Steal::{Empty, Retry, Success};
///
/// assert_eq!(Empty::<i32>.success(), None);
/// assert_eq!(Retry::<i32>.success(), None);
///
/// assert_eq!(Success(7).success(), Some(7));
/// ```
Returns the result of the operation, if successful.
Returns the result of the operation if successful .
pub fn success(self) -> Option<T> {
        match self {
            Steal::Success(res) => Some(res),
            _ => None,
        }
    }
pub fn success ( self ) -> Option < T > { match self { Steal :: Success ( res ) => Some ( res ) , _ => None , } }
Returns the result of the operation, if successful.
Returns the result of the operation if successful .
self
examples
```
use crossbeam_deque::Steal::{Empty, Retry, Success}.

assert_eq!(Empty::.success(), None);
assert_eq!(Retry::.success(), None).


` ` ` use crossbeam_deque :: Steal :: { Empty Retry Success } . assert_eq! ( Empty :: . success () None ) ; assert_eq! ( Retry :: . success () None ) .