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.