risingwave_common::types

Trait Successor

source
pub trait Successor {
    // Provided method
    fn successor(&self) -> Option<Self>
       where Self: Sized { ... }
}
Expand description

A successor is a term that comes right after a particular value. Suppose n is a number (where n belongs to any whole number), then the successor of n is ‘n+1’. The other terminologies used for a successor are just after, immediately after, and next value.

Provided Methods§

source

fn successor(&self) -> Option<Self>
where Self: Sized,

Returns the successor of the current value if it exists, otherwise returns None.

Implementations on Foreign Types§

source§

impl Successor for i16

source§

fn successor(&self) -> Option<Self>

source§

impl Successor for i32

source§

fn successor(&self) -> Option<Self>

source§

impl Successor for i64

source§

fn successor(&self) -> Option<Self>

Implementors§