Type Definition uleb128::Result[][src]

type Result<T = (), E = Error> = Result<T, E>;
Expand description

A specialized Result type for unsigned LEB128 operations.

This type is broadly used across uleb128 for any operation which may produce an error.

This type alias is generally used to avoid writing out uleb128::Error directly. Additionally, if no Ok type is provided, it defaults to () due to its frequency. Otherwise, this is a direct mapping to Result.

While usual Rust style is to import types directly, aliases of Result often are not, to make it easier to distinguish between them. Result is generally assumed to be std::result::Result, and so users of this alias will generally use uleb128::Result instead of shadowing the prelude’s import of std::result::Result.