Enum pushgen::ValueResult
source · #[repr(u8)]
pub enum ValueResult {
Stop,
MoreValues,
}
Expand description
Value-consumption result.
Value-consumers can either request more values from a generator, or for a generator to stop generating values.
Variants§
Stop
Request that a generator stop generating values.
MoreValues
Request more values from a generator.
Trait Implementations§
source§impl Clone for ValueResult
impl Clone for ValueResult
source§fn clone(&self) -> ValueResult
fn clone(&self) -> ValueResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValueResult
impl Debug for ValueResult
source§impl From<bool> for ValueResult
impl From<bool> for ValueResult
source§impl Ord for ValueResult
impl Ord for ValueResult
source§fn cmp(&self, other: &ValueResult) -> Ordering
fn cmp(&self, other: &ValueResult) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ValueResult> for ValueResult
impl PartialEq<ValueResult> for ValueResult
source§fn eq(&self, other: &ValueResult) -> bool
fn eq(&self, other: &ValueResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ValueResult> for ValueResult
impl PartialOrd<ValueResult> for ValueResult
source§fn partial_cmp(&self, other: &ValueResult) -> Option<Ordering>
fn partial_cmp(&self, other: &ValueResult) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more