pub enum OrderError {
Cycle {
vars: Vec<VarId>,
},
UnknownVar {
var: VarId,
},
}Expand description
Why a set of before edges has no solve order.
Variants§
Cycle
The edges contain a cycle (LRM 18.5.9: “circular dependencies … are
not allowed”). vars is one cycle, in before order, without
repeating its first variable (a self-edge solve a before a is the
one-variable cycle).
UnknownVar
An edge names a variable id outside 0..n.
Trait Implementations§
Source§impl Clone for OrderError
impl Clone for OrderError
Source§impl Debug for OrderError
impl Debug for OrderError
Source§impl Display for OrderError
impl Display for OrderError
impl Eq for OrderError
Source§impl Error for OrderError
impl Error for OrderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<OrderError> for BuildError
impl From<OrderError> for BuildError
Source§fn from(e: OrderError) -> Self
fn from(e: OrderError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OrderError
impl PartialEq for OrderError
impl StructuralPartialEq for OrderError
Auto Trait Implementations§
impl Freeze for OrderError
impl RefUnwindSafe for OrderError
impl Send for OrderError
impl Sync for OrderError
impl Unpin for OrderError
impl UnsafeUnpin for OrderError
impl UnwindSafe for OrderError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.