unionstd.zig.number_literal.Result[src]

Fields

int: u64

Result fits if it fits in u64

big_int: Base

Result is an int that doesn't fit in u64. Payload is the base, if it is not .decimal then the slice has a two character prefix.

float: FloatBase

Result is a float. Payload is the base, if it is not .decimal then the slice has a two character prefix.

failure: Error

Source Code

Source code
pub const Result = union(enum) {
    /// Result fits if it fits in u64
    int: u64,
    /// Result is an int that doesn't fit in u64. Payload is the base, if it is
    /// not `.decimal` then the slice has a two character prefix.
    big_int: Base,
    /// Result is a float. Payload is the base, if it is not `.decimal` then
    /// the slice has a two character prefix.
    float: FloatBase,
    failure: Error,
}