Search results

There are no results.

std.debug.StackFrame

class pub StackFrame

Details of a single stack frame in a stack trace.

Fields

path

let pub @path: Path

The path of the file the frame belongs to.

name

let pub @name: String

The name of the block of code the frame belongs to.

line

let pub @line: Int

The line number the stack frame originates from.

Static methods

new

Show source code
Hide source code
fn pub static new(path: Path, name: String, line: Int) -> StackFrame {
  StackFrame(path: path, name: name, line: line)
}
fn pub static new(path: Path, name: String, line: Int) -> StackFrame

Instance methods

clone

Show source code
Hide source code
fn pub clone -> StackFrame {
  StackFrame(path: @path.clone, name: @name, line: @line)
}
fn pub clone -> StackFrame

Creates a clone of self.

Implemented traits

std.clone.

Clone

impl Clone[StackFrame] for StackFrame