Trait gix_revision::spec::parse::Delegate

source ·
pub trait Delegate:
    Revision
    + Navigate
    + Kind {
    // Required method
    fn done(&mut self);
}
Expand description

A delegate to be informed about parse events, with methods split into categories.

  • Anchors - which revision to use as starting point for…
  • Navigation - where to go once from the initial revision
  • Range - to learn if the specification is for a single or multiple references, and how to combine them.

Required Methods§

source

fn done(&mut self)

Called at the end of a successful parsing operation. It can be used as a marker to finalize internal data structures.

Note that it will not be called if there is unconsumed input.

Implementors§