ResultError
Borrows the error payload with readonly access when its case is active.
Module std.prelude
import std.prelude;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
ResultError
pub fn ResultError<T, E>(Value: readonly Result<T, E>&) -> readonly E&?Borrows the error payload with readonly access when its case is active. T: Success payload, including void. E: Error payload. Value: Wrapper borrowed for the returned reference lifetime. Return: Optional readonly payload reference, or none for the opposite case. Warning: No owner retention; case change, move or destruction invalidates this borrow.
ResultError
pub fn ResultError<T, E>(Value: mut Result<T, E>&) -> mut E&?Borrows the error payload with mut access when its case is active. T: Success payload, including void. E: Error payload. Value: Wrapper borrowed for the returned reference lifetime. Return: Optional mut payload reference, or none for the opposite case. Warning: No owner retention; case change, move or destruction invalidates this borrow.