#[non_exhaustive]pub struct TooManyParameters;Expand description
Error raised when too many parameters are added to a ParametersBuilder.
§Examples
use rune::TypeHash;
use rune::hash::ParametersBuilder;
let mut params = ParametersBuilder::new();
let err = 'outer: {
for _ in 0.. {
params = match params.add(i64::HASH) {
Ok(params) => params,
Err(err) => break 'outer err,
};
};
panic!("expected error");
};
let err = err.to_string();Trait Implementations§
Source§impl Debug for TooManyParameters
impl Debug for TooManyParameters
Source§impl Display for TooManyParameters
impl Display for TooManyParameters
Source§impl Error for TooManyParameters
impl Error for TooManyParameters
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 TooManyParameters
impl RefUnwindSafe for TooManyParameters
impl Send for TooManyParameters
impl Sync for TooManyParameters
impl Unpin for TooManyParameters
impl UnsafeUnpin for TooManyParameters
impl UnwindSafe for TooManyParameters
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