pub enum InlineError {
SubNotFound {
name: String,
},
Recursive {
name: String,
},
TooLarge {
name: String,
line_count: usize,
},
MultipleReturns {
name: String,
count: usize,
},
CallSiteParseFailed {
message: String,
},
}Expand description
Error type returned by subroutine inlining operations.
Variants§
SubNotFound
The target subroutine was not found in the provided source.
Recursive
The subroutine calls itself (direct recursion) and cannot be inlined.
TooLarge
The subroutine body has too many lines to inline safely.
MultipleReturns
The subroutine has more than one return statement, which requires
control-flow restructuring beyond simple text substitution.
CallSiteParseFailed
The call site expression could not be parsed (wrong argument count, etc.).
Trait Implementations§
Source§impl Clone for InlineError
impl Clone for InlineError
Source§fn clone(&self) -> InlineError
fn clone(&self) -> InlineError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InlineError
impl Debug for InlineError
Source§impl Display for InlineError
impl Display for InlineError
Source§impl Error for InlineError
impl Error for InlineError
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 InlineError
impl RefUnwindSafe for InlineError
impl Send for InlineError
impl Sync for InlineError
impl Unpin for InlineError
impl UnsafeUnpin for InlineError
impl UnwindSafe for InlineError
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