pub enum BuildError {
UndefinedRef(String),
OutletIndexOutOfRange(u32),
NoOutDeclaration(u32),
DestructuringCountMismatch {
expected: usize,
got: usize,
},
AbstractionArgCountMismatch {
name: String,
expected: usize,
got: usize,
},
DuplicateFeedbackAssignment(String),
InvalidPortIndex {
node: String,
port: String,
index: u32,
max: u32,
},
BareMultiOutletRef {
name: String,
num_outlets: u32,
},
DuplicateStateAssignment(String),
}Expand description
Build error
Variants§
UndefinedRef(String)
Referenced an undefined variable
OutletIndexOutOfRange(u32)
Output port index out of range
NoOutDeclaration(u32)
E004: no out declaration corresponding to out[N]
DestructuringCountMismatch
E006: destructuring LHS count does not match RHS outlet count
AbstractionArgCountMismatch
E009: Abstraction argument count does not match in_ports count
DuplicateFeedbackAssignment(String)
E013: multiple assignments to the same feedback variable
InvalidPortIndex
E007: port index out of range
BareMultiOutletRef
E020: bare reference to multi-outlet node (.out[N] required)
DuplicateStateAssignment(String)
E019: multiple assignments to the same state
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
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()
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildError
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