pub fn toInt(self: Managed, comptime Int: type) ConvertError!Int
Convert self to Int.
self
Int
Returns an error if self cannot be narrowed into the requested type without truncation.
self: Managed
Int: type
3025 3026 3027
pub fn toInt(self: Managed, comptime Int: type) ConvertError!Int { return self.toConst().toInt(Int); }
Convert
selftoInt.Returns an error if self cannot be narrowed into the requested type without truncation.