Skip to main content

IterResult

Type Alias IterResult 

Source
pub type IterResult<T> = Result<T, IterBreak>;
Expand description

Result type for iterator callbacks - returning IterBreak stops iteration

Aliased Type§

pub enum IterResult<T> {
    Ok(T),
    Err(IterBreak),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(IterBreak)

Contains the error value