pub trait RevsetFilterExtension:
Debug
+ Any
+ Send
+ Sync {
// Required method
fn matches_commit(&self, commit: &Commit) -> bool;
}
Expand description
A custom revset filter expression, defined by an extension.
Required Methods§
Sourcefn matches_commit(&self, commit: &Commit) -> bool
fn matches_commit(&self, commit: &Commit) -> bool
Returns true iff this filter matches the specified commit.
Implementations§
Source§impl dyn RevsetFilterExtension
impl dyn RevsetFilterExtension
Sourcepub fn downcast_ref<T: RevsetFilterExtension>(&self) -> Option<&T>
pub fn downcast_ref<T: RevsetFilterExtension>(&self) -> Option<&T>
Returns reference of the implementation type.