pub fn sub(&self, duration: Duration) -> Option<Self> {
        self.as_nanos()
            .checked_sub(duration.as_nanos() as i128)
            .and_then(Self::from_nanos_i128)
    }
/// Returns the instant in time one `duration` ago.
///
/// Returns `None` if the resulting instant would underflow. As a result, it is important to
/// consider that on some platforms the `StreamInstant` may begin at `0` from the moment the
/// source stream is created.
Returns the instant in time one `duration` ago.
Returns `None` if the resulting instant would underflow. As a result, it is important to
consider that on some platforms the `StreamInstant` may begin at `0` from the moment the
source stream is created.
Returns the instant in time one ` duration ` ago . Returns ` None ` if the resulting instant would underflow . As a result it is important to consider that on some platforms the ` StreamInstant ` may begin at ` 0 ` from the moment the source stream is created .
pub fn sub(&self, duration: Duration) -> Option<Self> {
        self.as_nanos()
            .checked_sub(duration.as_nanos() as i128)
            .and_then(Self::from_nanos_i128)
    }
pub fn sub ( & self , duration : Duration ) -> Option < Self > { self . as_nanos ( ) . checked_sub ( duration . as_nanos ( ) as i128 ) . and_then ( Self :: from_nanos_i128 ) }
Returns the instant in time one `duration` ago.
Returns the instant in time one ` duration ` ago .
&self
duration
Duration
&self
duration
Duration