Trait jj_lib::revset::RevsetFilterExtension

source ·
pub trait RevsetFilterExtension: Debug + Any {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn matches_commit(&self, commit: &Commit) -> bool;
}
Expand description

A custom revset filter expression, defined by an extension.

Required Methods§

source

fn as_any(&self) -> &dyn Any

source

fn matches_commit(&self, commit: &Commit) -> bool

Returns true iff this filter matches the specified commit.

Implementors§