pub fn toInt(self: Mutable, 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: Mutable
Int: type
216 217 218
pub fn toInt(self: Mutable, 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.