Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

fromErrToOption

Convert to Some(E) if input is Err(E). Otherwise, return None.

function fromErrToOption<T, E>(input: Result<T, E>): Option<E>;
§
fromErrToOption<T, E>(input: Result<T, E>): Option<E>
[src]

§Type Parameters

§Parameters

§
input: Result<T, E>
[src]

§Return Type