struct DependencyOrder(Vec<usize>);Expand description
Indices of units sorted so that every unit follows its dependencies; the only constructor establishes the order.
Tuple Fields§
§0: Vec<usize>Implementations§
Source§impl DependencyOrder
impl DependencyOrder
Sourcefn new(units: &[&Unit]) -> Result<Self, PublishError>
fn new(units: &[&Unit]) -> Result<Self, PublishError>
Sort units so that every unit follows its dependencies, rejecting
cycles.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DependencyOrder
impl RefUnwindSafe for DependencyOrder
impl Send for DependencyOrder
impl Sync for DependencyOrder
impl Unpin for DependencyOrder
impl UnsafeUnpin for DependencyOrder
impl UnwindSafe for DependencyOrder
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