Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/but-rebase/src/graph_rebase/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,23 @@ type StepGraph = petgraph::stable_graph::StableDiGraph<Step, Edge>;
/// `ToSelector` does _not_ normalize a selector.
pub trait ToSelector {
/// Converts a given object into a selector. Calling `to_selector` on an
/// object asserts that the reciever was a object that is selectable in the
/// object asserts that the receiver was a object that is selectable in the
/// graph.
fn to_selector(&self, editor: &Editor) -> Result<Selector>;
}

/// Convert a type to a selector, and ensures that it is type commit.
pub trait ToCommitSelector {
/// Converts a given object into a selector. Calling `to_commit_selector` on
/// an object asserts that the reciever has a selectable pick step in the
/// an object asserts that the receiver has a selectable pick step in the
/// graph.
fn to_commit_selector(&self, editor: &Editor) -> Result<Selector>;
}

/// Convert a type to a selector, and ensures that it is type reference.
pub trait ToReferenceSelector {
/// Converts a given object into a selector. Calling `to_reference_selector` on
/// an object asserts that the reciever has a selectable reference step in
/// an object asserts that the receiver has a selectable reference step in
/// the graph.
fn to_reference_selector(&self, editor: &Editor) -> Result<Selector>;
}
Expand Down