pub struct RecipeOrderer { /* private fields */ }Implementations§
Source§impl RecipeOrderer
impl RecipeOrderer
pub fn new() -> Self
Sourcepub fn from_metadata(recipes: &[&dyn Recipe]) -> Self
pub fn from_metadata(recipes: &[&dyn Recipe]) -> Self
Build an orderer by reading should_run_before / should_run_after hints
from all recipes in the supplied slice. This is a O(n²) pass but n is tiny.
pub fn add_dependency_str( self, after: impl Into<String>, before: impl Into<String>, ) -> Self
Sourcepub fn add_dependency(self, after: &'static str, before: &'static str) -> Self
pub fn add_dependency(self, after: &'static str, before: &'static str) -> Self
Legacy static-str helper kept for existing call-sites in tests.
pub fn order<'a>(&self, recipes: &'a [&'a dyn Recipe]) -> Vec<&'a dyn Recipe>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecipeOrderer
impl RefUnwindSafe for RecipeOrderer
impl Send for RecipeOrderer
impl Sync for RecipeOrderer
impl Unpin for RecipeOrderer
impl UnsafeUnpin for RecipeOrderer
impl UnwindSafe for RecipeOrderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more