Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment tryToI32

std/conv::tryToI32


Generics

◻ T: TryToI32

Inputs

⇥ value: Stream<T>

Outputs

↦ into: Stream<Option<i32>>


Try to turn data stream into i32 one.

This treatment manages faillible conversion to i32 data type. If conversion is successful, an option with i32 value is streamed, else the option is set to none.