pub trait MarkResolver {
// Required method
fn mark(&self, name: char) -> Option<Position>;
}Expand description
VM.3e: the mark table 'x / `x read, so they can be motions. The
host owns the marks (m writes them); the grammar only asks where one is.
None means the mark isn’t set, which fails the motion with E20.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl MarkResolver for HashMap<char, Position>
The host’s table is a plain map, so it is its own resolver: a read-only
buffer borrows it as is, and the actor path carries an Arc of a clone.
impl MarkResolver for HashMap<char, Position>
The host’s table is a plain map, so it is its own resolver: a read-only
buffer borrows it as is, and the actor path carries an Arc of a clone.